Skip to content

Commit

Permalink
dev: remove reduntant assigment of test_environment variable (#568)
Browse files Browse the repository at this point in the history
dev: remove reduntant re-assignment of test_environment variable

Co-authored-by: Harsh Bajpai <harshbajpai@Harshs-MBP.bbrouter>
  • Loading branch information
bajpai244 and Harsh Bajpai authored Sep 14, 2023
1 parent a299d79 commit 2292c1b
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions crates/test-utils/src/deploy_helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -720,10 +720,9 @@ impl KakarotTestEnvironmentContext {

TestContext::Counter => {
// Deploy the Counter contract
test_environment = test_environment
.deploy_evm_contract(ContractDeploymentArgs { name: "Counter".into(), constructor_args: () })
.await;
test_environment
.deploy_evm_contract(ContractDeploymentArgs { name: "Counter".into(), constructor_args: () })
.await
}
TestContext::PlainOpcodes => {
// Deploy the Counter contract
Expand All @@ -737,17 +736,16 @@ impl KakarotTestEnvironmentContext {
};

// Deploy the PlainOpcodes contract
test_environment = test_environment
test_environment
.deploy_evm_contract(ContractDeploymentArgs {
name: "PlainOpcodes".into(),
constructor_args: (EthersAddress::from(counter_eth_address.as_fixed_bytes()),),
})
.await;
test_environment
.await
}
TestContext::ERC20 => {
// Deploy the ERC20 contract
test_environment = test_environment
test_environment
.deploy_evm_contract(ContractDeploymentArgs {
name: "ERC20".into(),
constructor_args: (
Expand All @@ -756,8 +754,7 @@ impl KakarotTestEnvironmentContext {
Token::Uint(ethers::types::U256::from(18)), // decimals
),
})
.await;
test_environment
.await
}
}
}
Expand Down

0 comments on commit 2292c1b

Please sign in to comment.