Skip to content

Commit 24bc098

Browse files
Fix proxy resolution for non-Ethereum networks
1 parent 5297ed2 commit 24bc098

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crytic_compile/platform/etherscan.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,8 +386,8 @@ def compile(self, crytic_compile: "CryticCompile", **kwargs: str) -> None:
386386
if "Proxy" in result and result["Proxy"] == "1":
387387
assert "Implementation" in result
388388
implementation = str(result["Implementation"])
389-
if prefix is not None:
390-
implementation = f"{prefix}:{implementation}"
389+
if target.startswith(tuple(SUPPORTED_NETWORK)):
390+
implementation = f"{target[:target.find(':')]}:{implementation}"
391391
compilation_unit.implementation_address = implementation
392392

393393
solc_standard_json.standalone_compile(

0 commit comments

Comments
 (0)