Skip to content

Commit

Permalink
Fix eth-tester tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kclowes committed Mar 20, 2023
1 parent ac157ed commit e71862a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/integration/test_ethereum_tester.py
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,16 @@ def test_eth_getBlockByNumber_finalized(
) -> None:
super().test_eth_getBlockByNumber_finalized(w3, empty_block)

def test_eth_get_balance_with_block_identifier(self, w3: "Web3") -> None:
w3.testing.mine()
miner_address = w3.eth.get_block(1)["miner"]
genesis_balance = w3.eth.get_balance(miner_address, 0)
later_balance = w3.eth.get_balance(miner_address, 1)

assert is_integer(genesis_balance)
assert is_integer(later_balance)
assert later_balance > genesis_balance


class TestEthereumTesterNetModule(NetModuleTest):
pass
Expand Down

0 comments on commit e71862a

Please sign in to comment.