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.
2 parents 441cabd + bc07da5 commit aebea8dCopy full SHA for aebea8d
crytic_compile/platform/etherscan.py
@@ -152,7 +152,9 @@ def _handle_multiple_files(
152
filtered_paths: List[str] = []
153
for filename, source_code in source_codes.items():
154
path_filename = PurePosixPath(filename)
155
- if "contracts" in path_filename.parts and not filename.startswith("@"):
+ # https://etherscan.io/address/0x19bb64b80cbf61e61965b0e5c2560cc7364c6546#code has an import of erc721a/contracts/ERC721A.sol
156
+ # if the full path is lost then won't compile
157
+ if "contracts" == path_filename.parts[0] and not filename.startswith("@"):
158
path_filename = PurePosixPath(
159
*path_filename.parts[path_filename.parts.index("contracts") :]
160
)
0 commit comments