-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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: proxy deploy with storage #3235
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly nits.
Coverage Report:
Changed Files:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Happy to write up the tests about storage slots. Otherwise looks good.
@petertonysmith94 as mentioned in the conversations, we do not handle custom storage slots in This PR ensures the storage for the target contract is initialised on the proxy contract. IMO a test for the function using storage on the target contract suffices. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@danielbate Apologies for my lack of understanding behind this functionality.
Thanks for clarifying.
The base branch was changed.
* test: add assertions for the storage methods * feat: pass target slots to proxy contract * chore: nits * chore: cleanup test * chore: lint * chore: changeset
fuels deploy
are broken #3236Release notes
In this release, we:
fuels deploy
Summary
When a contract with storage is deployed via proxy, the proxy must be aware of the target contracts storage slots.
Checklist