Skip to content

Commit

Permalink
fix: handle fix
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed May 8, 2024
1 parent 1e648b4 commit 47d0c78
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ape_etherscan/verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,14 @@ def attempt_verification(self):
if compiler:
settings = self.compiler.settings or {}
output_contracts = settings.get("outputSelection", {})
for cname in self.compiler.contractTypes or []:
for contract_id in self.compiler.contractTypes or []:
parts = contract_id.split(":")
if len(parts) != 2:
# Bad compiler.
valid = False
continue

_, cname = parts
if cname not in output_contracts:
valid = False
break
Expand Down

0 comments on commit 47d0c78

Please sign in to comment.