Skip to content

Commit 9e4bf45

Browse files
committed
added early multicall return if 0 calls were passed.
1 parent 3ae845d commit 9e4bf45

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

IceCreamSwapWeb3/Multicall.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ def _inner_call(
9191
calls_with_calldata: list[tuple[ContractFunction, bytes]],
9292
batch_size: int
9393
) -> tuple[list[Exception | tuple[any, ...]], list[int]]:
94+
if len(calls_with_calldata) == 0:
95+
return [], []
9496
kwargs = dict(
9597
use_revert=use_revert,
9698
batch_size=batch_size,

0 commit comments

Comments
 (0)