Skip to content

Commit c05297c

Browse files
committed
update parity and geth common.py
1 parent 5b51307 commit c05297c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tests/integration/go_ethereum/common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ def test_eth_replace_transaction_already_mined(self, web3, unlocked_account_dual
3535
web3.geth.miner.stop()
3636

3737
@pytest.mark.xfail(reason='Block identifier has not been implemented in geth')
38-
def test_eth_estimateGas_with_block(self,
38+
def test_eth_estimate_gas_with_block(self,
3939
web3,
4040
unlocked_account_dual_type):
41-
super().test_eth_estimateGas_with_block(
41+
super().test_eth_estimate_gas_with_block(
4242
web3, unlocked_account_dual_type
4343
)
4444

tests/integration/parity/common.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ def _check_web3_clientVersion(self, client_version):
2727

2828
class ParityEthModuleTest(EthModuleTest):
2929
@pytest.mark.xfail(reason='Parity returns a gas value even when a function will revert')
30-
def test_eth_estimateGas_revert_with_msg(self, web3, revert_contract, unlocked_account):
31-
super().test_eth_estimateGas_revert_with_msg(web3, revert_contract, unlocked_account)
30+
def test_eth_estimate_gas_revert_with_msg(self, web3, revert_contract, unlocked_account):
31+
super().test_eth_estimate_gas_revert_with_msg(web3, revert_contract, unlocked_account)
3232

33-
def test_eth_estimateGas_revert_without_msg(
33+
def test_eth_estimate_gas_revert_without_msg(
3434
self,
3535
web3,
3636
revert_contract,
@@ -44,7 +44,7 @@ def test_eth_estimateGas_revert_without_msg(
4444
"to": revert_contract.address,
4545
},
4646
)
47-
web3.eth.estimateGas(txn_params)
47+
web3.eth.estimate_gas(txn_params)
4848

4949
@pytest.mark.xfail(reason='Parity dropped "pending" option in 1.11.1')
5050
def test_eth_getBlockByNumber_pending(self, web3):

0 commit comments

Comments
 (0)