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:
27302730 assert balance >= 0
27312731
27322732 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 )
27352737 later_balance = w3 .eth .get_balance (miner_address , "latest" )
27362738
2737- assert is_integer (balance_post_genesis )
2739+ assert is_integer (balance_genesis )
27382740 assert is_integer (later_balance )
2739- assert later_balance > balance_post_genesis
2741+ assert later_balance != balance_genesis
27402742
27412743 @pytest .mark .parametrize (
27422744 "address, expect_success" ,
You can’t perform that action at this time.
0 commit comments