Skip to content

Commit

Permalink
Fix Packaging (#72)
Browse files Browse the repository at this point in the history
* fix packaging backward compatibility

* version bump
  • Loading branch information
Tburm authored Jan 3, 2025
1 parent 0f200eb commit 9adbdf4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name="synthetix",
version="0.1.22",
version="0.1.23",
description="Synthetix protocol SDK",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
Expand Down
10 changes: 9 additions & 1 deletion src/synthetix/synthetix.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,15 @@ def _load_contracts(self):
"trusted_multicall_forwarder"
]["TrustedMulticallForwarder"]
mc_address = w3.to_checksum_address(mc_definition["address"])

multicall = w3.eth.contract(mc_address, abi=mc_definition["abi"])
elif (
"system" in self.contracts
and "trusted_multicall_forwarder" in self.contracts["system"]
):
mc_definition = self.contracts["system"]["trusted_multicall_forwarder"][
"TrustedMulticallForwarder"
]
mc_address = w3.to_checksum_address(mc_definition["address"])
multicall = w3.eth.contract(mc_address, abi=mc_definition["abi"])
else:
multicall = None
Expand Down

0 comments on commit 9adbdf4

Please sign in to comment.