Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: viaIR would not verify on etherscan #129

Merged
merged 4 commits into from
Jul 11, 2024
Merged

Conversation

sreyemnayr
Copy link
Contributor

@sreyemnayr sreyemnayr commented Apr 30, 2024

This was causing me to pull my hair out! It turns out that etherscan's single-file verification has no way to indicate that viaIR was used by the compiler. However, the standard json method DOES. I guess that historically, only ethereum supported this method, but now it appears that at least Base/Blast (only one's I've tested so far) do - but in any case, viaIR would ALWAYS cause failure in single-file mode. Now if single file mode is being used, it raises an exception explaining as much, and verifies otherwise.

What I did

fixes: #

How I did it

How to verify it

Verified contracts. What I don't know how to do is create actual tests for this beyond dogfood. To that end, I planned on generating a simple few contracts to deploy across several ecosystems.

Checklist

  • Passes all linting checks (pre-commit and CI jobs)
  • New test cases have been added and are passing
  • Documentation has been updated
  • PR title follows Conventional Commit standard (will be automatically included in the changelog)

ape_etherscan/exceptions.py Outdated Show resolved Hide resolved
ape_etherscan/verify.py Outdated Show resolved Hide resolved
Copy link

github-actions bot commented Jun 8, 2024

This pull request is considered stale because it has been open 30 days with no activity. Remove stale label, add a comment, or make a new commit, otherwise this PR will be closed in 5 days.

@github-actions github-actions bot added the stale label Jun 8, 2024
@antazoey antazoey removed the stale label Jun 10, 2024
Copy link

This pull request is considered stale because it has been open 30 days with no activity. Remove stale label, add a comment, or make a new commit, otherwise this PR will be closed in 5 days.

@github-actions github-actions bot added the stale label Jul 11, 2024
@antazoey antazoey removed the stale label Jul 11, 2024
@antazoey
Copy link
Member

tests pass

@antazoey antazoey merged commit f06b1e3 into ApeWorX:main Jul 11, 2024
5 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants