@@ -31,8 +31,8 @@ class MultiCall:
31
31
CALLER_ADDRESS = "0x0000000000000000000000000000000000000123"
32
32
33
33
MULTICALL_DEPLOYMENTS : dict [int , str ] = {
34
- 56 : "0xce8D8D579Da261bBbb5A583bE2E5d49Ee1C70462 " ,
35
- 1116 : "0x2cd05AcF9aBe54D57eb1E6B12f2129880fA4cF65 " ,
34
+ 56 : "0xDD020f51961febA6C989b1865c44f3bFcEfCA58d " ,
35
+ 1116 : "0x2De75065f4161c797d7168cE63CBc0261FE1ccF9 " ,
36
36
}
37
37
38
38
@classmethod
@@ -330,13 +330,14 @@ def _call_multicall(self, multicall_call: ContractConstructor | ContractFunction
330
330
})
331
331
_ , multicall_result , completed_calls = eth_abi .decode (get_abi_output_types (multicall_call .abi ), raw_response )
332
332
333
+ multicall_result = multicall_result [:completed_calls ]
334
+
333
335
if self .undeployed_contract_constructor is not None :
334
336
# remove first call result as that's the deployment of the undeployed contract
335
337
success , _ , address_encoded = multicall_result [0 ]
336
338
assert success , "Undeployed contract constructor reverted"
337
339
assert "0x" + address_encoded [- 20 :].hex () == self .undeployed_contract_address .lower (), "unexpected undeployed contract address"
338
340
multicall_result = multicall_result [1 :]
339
- multicall_result = multicall_result [:completed_calls ]
340
341
except ContractLogicError as e :
341
342
if not e .message .startswith ("execution reverted: " ):
342
343
raise
0 commit comments