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(verify-etherscan): continue verification even if errors occur #8407

Merged

Conversation

StackOverflowExcept1on
Copy link
Contributor

Motivation

The ProxyAdmin contract from OpenZeppelin cannot be verified for some reason and this also prevents verification of other contracts (process just terminates with exit code 1).

#6023 (comment)

Solution

Instead of terminating process a new method run_async_until_break has been introduced, which allows to continue retrying or instantly exit with an error. Also added counter of successfully verified smart contracts.

Changes

Deploying contracts on testnet:

  • before: deploy logs 1
    Program contract is not verified because the process terminates on ProxyAdmin verification (2 / 4)
  • after: deploy logs 2
    Program contract is verified (3 / 4)

Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is reasonable,

solution lgtm

pending @klkvr

crates/script/src/sequence.rs Outdated Show resolved Hide resolved
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
@klkvr klkvr enabled auto-merge (squash) July 11, 2024 11:51
@klkvr klkvr merged commit 6818c84 into foundry-rs:master Jul 11, 2024
20 checks passed
@StackOverflowExcept1on StackOverflowExcept1on deleted the continue-etherscan-verification branch July 11, 2024 12:48
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.

4 participants