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

CLI: Throw error if --requireReference and --unsafeSkipStorageCheck are both enabled #913

Merged
merged 4 commits into from
Oct 30, 2023

Conversation

ericglau
Copy link
Member

@ericglau ericglau commented Oct 26, 2023

The requireReference option is used for requiring a reference contract for storage compatibility checks, which contradicts with unsafeSkipStorageCheck. Throw an error if both are enabled.

@ericglau ericglau requested a review from a team October 26, 2023 16:16
@Amxx
Copy link
Contributor

Amxx commented Oct 26, 2023

What is the argument for ignoring (silently) vs throwing an "incompatible options" error ?

@ernestognw
Copy link
Member

Same concern as @Amxx, the CLI arguments are contradictory and it's not obvious what the behavior would be.

@ericglau ericglau changed the title CLI: Ignore requireReference if using unsafeSkipStorageCheck CLI: Throw error if --requireReference and --unsafeSkipStorageCheck are both enabled Oct 26, 2023
@ericglau
Copy link
Member Author

Thanks, I agree with the comments. Changed it to throw an error if both are enabled.

@ericglau ericglau requested review from Amxx and ernestognw and removed request for Amxx October 30, 2023 14:06
Copy link
Member

@ernestognw ernestognw left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@ericglau ericglau merged commit 7069859 into OpenZeppelin:master Oct 30, 2023
9 checks passed
@ericglau ericglau deleted the requireReferenceSkip branch October 30, 2023 18:21
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.

3 participants