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: Disallow self-references for storage layout validations #1067

Merged
merged 11 commits into from
Aug 28, 2024

Conversation

ericglau
Copy link
Member

Fixes #1064

Disallows self-references when using the --reference option or the @custom:oz-upgrades-from annotation.

NOTE: This is technically a breaking change, but we should not bump the major version for this release. I consider this as a bug-fix, since the previous behavior of allowing self-references would defeat the purpose of storage layout validations.

If users really cannot provide a reference, either in the same project or in a previous build info file, then they should skip storage layout validations as a last resort. This is described in the new error message that we throw.

@ericglau ericglau requested a review from a team August 23, 2024 19:57
@ericglau ericglau merged commit 8f663a8 into OpenZeppelin:master Aug 28, 2024
11 checks passed
@ericglau ericglau deleted the noSelfReference branch August 28, 2024 20:28
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.

CLI: Disallow self-references for storage layout validations
2 participants