diff --git a/tests/integration/test_ethereum_tester.py b/tests/integration/test_ethereum_tester.py index b0789d38b9..e22c9e1b4a 100644 --- a/tests/integration/test_ethereum_tester.py +++ b/tests/integration/test_ethereum_tester.py @@ -568,16 +568,6 @@ def test_eth_send_transaction_no_gas(self, eth_tester, w3, unlocked_account): def test_eth_send_transaction_no_max_fee(self, eth_tester, w3, unlocked_account): super().test_eth_send_transaction_no_max_fee(w3, unlocked_account) - def test_eth_get_balance_with_block_identifier(self, w3: "Web3") -> None: - # in eth-tester we've changed 'mining' nomenclature to 'coinbase' - coinbase_address = w3.eth.get_block(1)["coinbase"] - genesis_balance = w3.eth.get_balance(coinbase_address, 0) - later_balance = w3.eth.get_balance(coinbase_address, 1) - - assert is_integer(genesis_balance) - assert is_integer(later_balance) - assert later_balance > genesis_balance - def test_eth_getBlockByNumber_safe( self, w3: "Web3", empty_block: BlockData ) -> None: diff --git a/web3/providers/eth_tester/middleware.py b/web3/providers/eth_tester/middleware.py index 28b5baec9f..c30c22c896 100644 --- a/web3/providers/eth_tester/middleware.py +++ b/web3/providers/eth_tester/middleware.py @@ -186,6 +186,10 @@ def is_hexstr(value: Any) -> bool: "extra_data": "extraData", "gas_used": "gasUsed", "base_fee_per_gas": "baseFeePerGas", + # eth-tester changed the miner key to coinbase since + # there is no longer any mining happening, but the current + # JSON-RPC spec still says miner + "coinbase": "miner", } block_result_remapper = apply_key_map(BLOCK_RESULT_KEY_MAPPING)