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

feat(forge): add --ignore-already-verified flag to verify-contract #6426

Closed
wants to merge 1 commit into from

Conversation

tsite
Copy link
Contributor

@tsite tsite commented Nov 25, 2023

Set this flag to true when deploying new contracts to ensure that they are fully verified instead of partially verified.
Set this flag to false by default when running forge verify-contract manually.

CLOSES #6424

Motivation

forge verify-contract does not attempt to re-verify an already-verified contract as this is an expensive operation. However there are some cases in which this behavior is desired e.g. to re-verify a partially-verified contract with source code that matches the metadata hash.

Solution

I suggest adding a flag --ignore-already-verified to the verifier command-line arguments to skip the contract already verified check.

Set this flag to true when deploying new contracts to ensure that they
are fully verified instead of partially verified. Set this flag to false
by default when running forge verify-contract manually.
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.

so sorry this one slipped through...

I only noticed now that we merged #6461 which does the same thing

@tsite
Copy link
Contributor Author

tsite commented Dec 7, 2023

no worries - still think it would be nice to default to verifying all contracts during deployment (even if the bytecode matches another contract that is partially verified) so that they are fully instead of partially verified. what do you think @mattsse?

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.

feat(forge verify-contract): support fully verifying a partially-verified contract
2 participants