File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
web3/_utils/module_testing Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -2730,13 +2730,15 @@ def test_eth_get_balance(self, w3: "Web3") -> None:
2730
2730
assert balance >= 0
2731
2731
2732
2732
def test_eth_get_balance_with_block_identifier (self , w3 : "Web3" ) -> None :
2733
- miner_address = w3 .eth .get_block (1 )["miner" ]
2734
- balance_post_genesis = w3 .eth .get_balance (miner_address , 1 )
2733
+ genesis_block = w3 .eth .get_block (0 )
2734
+ miner_address = genesis_block ["miner" ]
2735
+
2736
+ balance_genesis = w3 .eth .get_balance (miner_address , 0 )
2735
2737
later_balance = w3 .eth .get_balance (miner_address , "latest" )
2736
2738
2737
- assert is_integer (balance_post_genesis )
2739
+ assert is_integer (balance_genesis )
2738
2740
assert is_integer (later_balance )
2739
- assert later_balance > balance_post_genesis
2741
+ assert later_balance != balance_genesis
2740
2742
2741
2743
@pytest .mark .parametrize (
2742
2744
"address, expect_success" ,
You can’t perform that action at this time.
0 commit comments