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

Add namespace storage for upgradeable contracts #415

Closed
minghinmatthewlam opened this issue Jul 8, 2024 · 0 comments
Closed

Add namespace storage for upgradeable contracts #415

minghinmatthewlam opened this issue Jul 8, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request upgradeability

Comments

@minghinmatthewlam
Copy link

Context and scope
Implement ERC7201 namespace storage to upgradeable contracts to prevent storage collision between logic contract versions.

blocked by #397

Discussion and alternatives
Alternative was using _gap variables, but namespace storage has advantages:

Is the new standard and used in OZv5
For non-upgradeable extensions no unnecessary _gap variables
Ideally we'll include upgrading OZ version to v5, and sol version to ^0.8.20 as well, but this would also be compatible with OZ v4 with our current setup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request upgradeability
Projects
Archived in project
Development

No branches or pull requests

1 participant