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

fix: postponed GEAR initialization #298

Merged
merged 2 commits into from
Feb 11, 2025
Merged

fix: postponed GEAR initialization #298

merged 2 commits into from
Feb 11, 2025

Conversation

0xmikko
Copy link
Contributor

@0xmikko 0xmikko commented Feb 11, 2025

During the deployment to L2, I found a situation where the GEARStaking contract is deployed, but GEARR token is only assigned when the activate function is called. Because of that, GearStaking reverts in the constructor and the deployment gets stuck. To solve this, I implemented a function that performs a delayed assignment — it sets Gear address at the moment of first use by a staker, rather than immediately.

@lekhovitsky lekhovitsky changed the title fix: postponed Gear set fix: postponed GEAR initialization Feb 11, 2025
@lekhovitsky lekhovitsky merged commit 29b3c12 into next Feb 11, 2025
3 checks passed
@lekhovitsky lekhovitsky deleted the gear-staking-fix branch February 11, 2025 10: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