Skip to content

Commit

Permalink
Fix proxy resolution for non-Ethereum networks
Browse files Browse the repository at this point in the history
  • Loading branch information
SheldonHolmgren committed Jun 29, 2023
1 parent 6edf4ed commit 5b72701
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crytic_compile/platform/etherscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,8 @@ def compile(self, crytic_compile: "CryticCompile", **kwargs: str) -> None:
if "Proxy" in result and result["Proxy"] == "1":
assert "Implementation" in result
implementation = str(result["Implementation"])
if prefix is not None:
implementation = f"{prefix}:{implementation}"
if target.startswith(tuple(SUPPORTED_NETWORK)):
implementation = f"{target[:target.find(':')]}:{implementation}"
compilation_unit.implementation_address = implementation

solc_standard_json.standalone_compile(filenames, compilation_unit, working_dir=working_dir)
Expand Down

0 comments on commit 5b72701

Please sign in to comment.