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

test redelegation and storage layout versioning #9

Open
snreynolds opened this issue Feb 26, 2025 · 0 comments
Open

test redelegation and storage layout versioning #9

snreynolds opened this issue Feb 26, 2025 · 0 comments

Comments

@snreynolds
Copy link
Member

In the case of re-delegating to a new version/upgrading, we have to be careful about storage collisions.

If we want the new version to be able to use the old versions storage then the storage slot calculation cannot change but the changes need to be backwards compatible.

If we want the new version to use new storage we need to migrate the old storage into the new storage layout and change any custom storage slot declarations, by adding a version into the hash.

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

No branches or pull requests

1 participant