From 91056b4335b800cca19983927e173e716b400a8b Mon Sep 17 00:00:00 2001 From: Ramiro Carlucho Date: Thu, 24 Nov 2022 11:50:15 +0000 Subject: [PATCH] lint fix --- tests/integration_tests/test_gas.py | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/tests/integration_tests/test_gas.py b/tests/integration_tests/test_gas.py index 5dff4b8ff3..fd3e6547ed 100755 --- a/tests/integration_tests/test_gas.py +++ b/tests/integration_tests/test_gas.py @@ -1,6 +1,8 @@ -from .utils import ADDRS, CONTRACTS, KEYS, deploy_contract, send_transaction from web3.exceptions import TimeExhausted +from .utils import ADDRS, CONTRACTS, KEYS, deploy_contract, send_transaction + + def test_gas_eth_tx(geth, ethermint): tx_value = 10 @@ -45,8 +47,6 @@ def get_gas(w3, contract, i=0): def test_gas_call(geth, ethermint): - - # deploy an identical contract on geth and ethermint # ensure that the contract has a function which consumes non-trivial gas geth_contract, _ = deploy_contract( @@ -58,21 +58,6 @@ def test_gas_call(geth, ethermint): geth_call_receipt = get_gas(geth.w3, geth_contract) ethermint_call_receipt = get_gas(ethermint.w3, ethermint_contract) - # call the contract and get tx receipt for geth - # geth_gas_price = geth.w3.eth.gas_price - # geth_txhash = (geth_contract.functions - # .burnGas(function_input) - # .transact({'from': ADDRS["validator"], "gasPrice": geth_gas_price})) - # geth_call_receipt = geth.w3.eth.wait_for_transaction_receipt(geth_txhash) - - # # repeat the above for ethermint - # ethermint_gas_price = ethermint.w3.eth.gas_price - # ethermint_txhash = (ethermint_contract.functions - # .burnGas(function_input) - # .transact({'from': ADDRS["validator"], - # "gasPrice": ethermint_gas_price})) - # ethermint_call_receipt = (ethermint.w3. - # eth.wait_for_transaction_receipt(ethermint_txhash)) # ensure that the gasUsed is equivalent assert geth_call_receipt.gasUsed == ethermint_call_receipt.gasUsed