We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bb6e72 commit e1966faCopy full SHA for e1966fa
crytic_compile/platform/etherscan.py
@@ -148,7 +148,9 @@ def _handle_multiple_files(
148
filtered_paths: List[str] = []
149
for filename, source_code in source_codes.items():
150
path_filename = Path(filename)
151
- if "contracts" in path_filename.parts and not filename.startswith("@"):
+ # https://etherscan.io/address/0x19bb64b80cbf61e61965b0e5c2560cc7364c6546#code has an import of erc721a/contracts/ERC721A.sol
152
+ # if the full path is lost then won't compile
153
+ if "contracts" == path_filename.parts[0] and not filename.startswith("@"):
154
path_filename = Path(*path_filename.parts[path_filename.parts.index("contracts") :])
155
156
filtered_paths.append(str(path_filename))
0 commit comments