Skip to content

L-12 Wrong Usage of reinitializer Modifier #767

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 14, 2025
Merged

Conversation

cam-schultz
Copy link
Contributor

Why this should be merged

Changes the StakingManager concrete contracts to use initializer rather than reinitializer(2) on their initialize functions. reinitializer(2) was used in the inheritance based model in the v1 contracts to implement PoA -> PoS migration. Now that StakingManager is standalone from ValidatorManager, they should both only ever be initialized once.

How this works

Change reinitializer(2) to initializer

How this was tested

CI

How is this documented

N/A

@github-project-automation github-project-automation bot moved this from Backlog 🗄️ to In Review 👀 in Platform Engineering Group Apr 11, 2025
@cam-schultz cam-schultz merged commit eb732bd into main Apr 14, 2025
17 checks passed
@github-project-automation github-project-automation bot moved this from In Review 👀 to Done ✅ in Platform Engineering Group Apr 14, 2025
@cam-schultz cam-schultz deleted the proper-initializer branch April 14, 2025 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done ✅
Development

Successfully merging this pull request may close these issues.

4 participants