Skip to content

Commit 9d2bbd6

Browse files
committed
v0.1.4 release
Multicall bug fix
1 parent 77454f8 commit 9d2bbd6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

IceCreamSwapWeb3/Multicall.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ class MultiCall:
3131
CALLER_ADDRESS = "0x0000000000000000000000000000000000000123"
3232

3333
MULTICALL_DEPLOYMENTS: dict[int, str] = {
34-
56: "0xce8D8D579Da261bBbb5A583bE2E5d49Ee1C70462",
35-
1116: "0x2cd05AcF9aBe54D57eb1E6B12f2129880fA4cF65",
34+
56: "0xDD020f51961febA6C989b1865c44f3bFcEfCA58d",
35+
1116: "0x2De75065f4161c797d7168cE63CBc0261FE1ccF9",
3636
}
3737

3838
@classmethod
@@ -330,13 +330,14 @@ def _call_multicall(self, multicall_call: ContractConstructor | ContractFunction
330330
})
331331
_, multicall_result, completed_calls = eth_abi.decode(get_abi_output_types(multicall_call.abi), raw_response)
332332

333+
multicall_result = multicall_result[:completed_calls]
334+
333335
if self.undeployed_contract_constructor is not None:
334336
# remove first call result as that's the deployment of the undeployed contract
335337
success, _, address_encoded = multicall_result[0]
336338
assert success, "Undeployed contract constructor reverted"
337339
assert "0x" + address_encoded[-20:].hex() == self.undeployed_contract_address.lower(), "unexpected undeployed contract address"
338340
multicall_result = multicall_result[1:]
339-
multicall_result = multicall_result[:completed_calls]
340341
except ContractLogicError as e:
341342
if not e.message.startswith("execution reverted: "):
342343
raise

0 commit comments

Comments
 (0)