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

Add an upgrade() function to all L1 contracts #13072

Open
Tracked by #13069
maurelian opened this issue Nov 25, 2024 · 0 comments
Open
Tracked by #13069

Add an upgrade() function to all L1 contracts #13072

maurelian opened this issue Nov 25, 2024 · 0 comments

Comments

@maurelian
Copy link
Contributor

maurelian commented Nov 25, 2024

Every L1 contract will get a new function alongside initialize():

function upgrade() external initialize {}

For most contracts it will be empty unless the forthcoming upgrade is adding new values to storage.

For contracts which have a non-empty upgrade() method
We will need a mechanism to identify when an L1 release has occurred which causes these functions to become a 'no-op'. They should be reset at that time.

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