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

feat: upgradeability with initializer #497

Merged
merged 7 commits into from
Aug 18, 2023

Conversation

Orland0x
Copy link
Contributor

@Orland0x Orland0x commented Aug 16, 2023

closes #485

also closes #487 as it made sense to sort out now.

@Orland0x Orland0x requested a review from pscott August 17, 2023 18:52
Copy link
Contributor

@pscott pscott left a comment

Choose a reason for hiding this comment

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

utACK

Comment on lines 19 to 21
assert(self._initialized.read() == false, 'Contract already initialized');
self._initialized.write(true);
self._var.write(var);
Copy link
Contributor

@pscott pscott Aug 18, 2023

Choose a reason for hiding this comment

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

could we make SpaceV2 use the reinitializable functions ? Just to make sure it can indeed be used again (not sure how storage works)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yep

@Orland0x Orland0x merged commit 3871e5f into develop Aug 18, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants