File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 22
33setup (
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" ,
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments