Skip to content

Commit ab3e344

Browse files
committed
v0.1.57 multicall allowing colliding state overwrites if they are identical
1 parent 5160396 commit ab3e344

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

IceCreamSwapWeb3/Multicall.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def merge_state_overwrites(state_overwrites: list[StateOverride | None]) -> Stat
249249
else:
250250
prev_state_diff = prev_overwrite["stateDiff"]
251251
for slot, value in overwrite["stateDiff"].items():
252-
assert slot not in prev_state_diff
252+
assert slot not in prev_state_diff or prev_state_diff[slot] == value
253253
prev_state_diff[slot] = value
254254
return merged_overwrite
255255

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from setuptools import setup, find_packages
22

3-
VERSION = '0.1.56'
3+
VERSION = '0.1.57'
44
DESCRIPTION = 'IceCreamSwap Web3.py wrapper'
55
LONG_DESCRIPTION = 'IceCreamSwap Web3.py wrapper with automatic retries, multicall and other advanced functionality'
66

0 commit comments

Comments
 (0)