Skip to content

fix: storage layout regression #446

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

Merged
merged 2 commits into from
Apr 1, 2025
Merged

Conversation

stevennevins
Copy link
Contributor

Motivation:

regression in the src / rc storage layouts

Modifications:

Re-order the inheritance to preserve the storage layout from the v0.5.4 rewards release

Result:

Consistent storage layout between releases

@stevennevins stevennevins requested a review from 8sunyuan March 28, 2025 20:30
@8sunyuan
Copy link
Collaborator

8sunyuan commented Apr 1, 2025

Compared storage inspects between v1.1.1-testnet-slashing and the current commit.

SlashingRegistryCoordinator looks good
image

@8sunyuan
Copy link
Collaborator

8sunyuan commented Apr 1, 2025

But now the RegistryCoordinator storage layout is now appended at the end and is different from the previous v1.1.1 release. Will this affect anyone?
image

@stevennevins
Copy link
Contributor Author

But now the RegistryCoordinator storage layout is now appended at the end and is different from the previous v1.1.1 release. Will this affect anyone? image

I don't know of anyone who upgraded on testnet, but we would need to create essentially a SlashingRegistryCoordinatorBase without EIP712 to resolve this, and then have RegistryCoordinator and SlashingRegistry coordinators inherit that separately to fully resolve this

Copy link
Collaborator

@8sunyuan 8sunyuan left a comment

Choose a reason for hiding this comment

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

Noting that RegistryCoordinatorStorage has shifted down slots but this should be fine

@stevennevins stevennevins merged commit 421a81c into dev Apr 1, 2025
4 checks passed
@stevennevins stevennevins deleted the fix/storage-layout-upgrade branch April 1, 2025 18:46
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.

2 participants