Skip to content

Commit 9adbdf4

Browse files
authored
Fix Packaging (#72)
* fix packaging backward compatibility * version bump
1 parent 0f200eb commit 9adbdf4

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name="synthetix",
5-
version="0.1.22",
5+
version="0.1.23",
66
description="Synthetix protocol SDK",
77
long_description=open("README.md").read(),
88
long_description_content_type="text/markdown",

src/synthetix/synthetix.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,15 @@ def _load_contracts(self):
354354
"trusted_multicall_forwarder"
355355
]["TrustedMulticallForwarder"]
356356
mc_address = w3.to_checksum_address(mc_definition["address"])
357-
357+
multicall = w3.eth.contract(mc_address, abi=mc_definition["abi"])
358+
elif (
359+
"system" in self.contracts
360+
and "trusted_multicall_forwarder" in self.contracts["system"]
361+
):
362+
mc_definition = self.contracts["system"]["trusted_multicall_forwarder"][
363+
"TrustedMulticallForwarder"
364+
]
365+
mc_address = w3.to_checksum_address(mc_definition["address"])
358366
multicall = w3.eth.contract(mc_address, abi=mc_definition["abi"])
359367
else:
360368
multicall = None

0 commit comments

Comments
 (0)