File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -899,7 +899,7 @@ def _set_function_info(self) -> None:
899
899
900
900
def call (
901
901
self , transaction : Optional [TxParams ] = None ,
902
- block_identifier : BlockIdentifier = 'latest' ,
902
+ block_identifier : BlockIdentifier = None ,
903
903
state_override : Optional [CallOverrideParams ] = None ,
904
904
) -> Any :
905
905
"""
@@ -1542,6 +1542,8 @@ def call_contract_function(
1542
1542
1543
1543
1544
1544
def parse_block_identifier (web3 : 'Web3' , block_identifier : BlockIdentifier ) -> BlockIdentifier :
1545
+ if block_identifier is None :
1546
+ return web3 .eth .default_block
1545
1547
if isinstance (block_identifier , int ):
1546
1548
return parse_block_identifier_int (web3 , block_identifier )
1547
1549
elif block_identifier in ['latest' , 'earliest' , 'pending' ]:
You can’t perform that action at this time.
0 commit comments