From 5bc4bde611cc597259b9e49a36bfaa900f5aebff Mon Sep 17 00:00:00 2001 From: Harsh Bajpai Date: Thu, 14 Sep 2023 14:48:57 +0530 Subject: [PATCH] dev: remove reduntant re-assignment of test_environment variable --- crates/test-utils/src/deploy_helpers.rs | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/crates/test-utils/src/deploy_helpers.rs b/crates/test-utils/src/deploy_helpers.rs index f78e84493..adc896a7d 100644 --- a/crates/test-utils/src/deploy_helpers.rs +++ b/crates/test-utils/src/deploy_helpers.rs @@ -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 @@ -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: ( @@ -756,8 +754,7 @@ impl KakarotTestEnvironmentContext { Token::Uint(ethers::types::U256::from(18)), // decimals ), }) - .await; - test_environment + .await } } }