Skip to content

Commit 22681a7

Browse files
committed
Address test_eth_get_balance_with_block_identifier in TestEthereumTesterEthModule
1 parent f7f35cd commit 22681a7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/integration/test_ethereum_tester.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -586,6 +586,12 @@ def test_eth_getBlockByNumber_finalized(
586586
) -> None:
587587
super().test_eth_getBlockByNumber_finalized(w3, empty_block)
588588

589+
def test_eth_get_balance_with_block_identifier(self, w3: "Web3") -> None:
590+
# send some money to the coinbase account to ensure later balance > genesis
591+
w3.eth.send_transaction({"to": w3.eth.coinbase, "value": 1, "gas": 21000})
592+
593+
super().test_eth_get_balance_with_block_identifier(w3)
594+
589595

590596
class TestEthereumTesterNetModule(NetModuleTest):
591597
pass

0 commit comments

Comments
 (0)