Skip to content

Commit

Permalink
fix: version ype
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Dec 15, 2023
1 parent d450dab commit 4af9b0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ape_etherscan/verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,8 @@ def attempt_verification(self):
to validate the contract.
"""

version = str(self.compiler)
settings = self.compiler.settings or self._get_new_settings(str(version))
version = str(self.compiler.version)
settings = self.compiler.settings or self._get_new_settings(version)
optimizer = settings.get("optimizer", {})
optimized = optimizer.get("enabled", False)
runs = optimizer.get("runs", DEFAULT_OPTIMIZATION_RUNS)
Expand Down

0 comments on commit 4af9b0e

Please sign in to comment.