Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Upgradeability for TeleporterUpgradeable and TeleporterOwnerUpgradeable #397
Upgradeability for TeleporterUpgradeable and TeleporterOwnerUpgradeable #397
Changes from 8 commits
4699585
1f9e9ec
7ed72a1
0e12905
530b3e6
a322c6a
175cc6f
1678786
efed26d
6f7a152
697a555
df1360a
dc8ab61
35f3fe8
1bc3317
e23962e
d338985
ed11c50
8b8f896
ad5d23d
36742d5
8727ac3
825edc3
c026b9a
b43ff79
151fdac
96c2bc2
d93e577
f63e8ea
5504e95
4bc9618
c4a6042
9128448
27ac422
79736e5
4db07d7
5d0c6d9
d3b0600
c60dbed
85987c5
15107fc
164b5ad
fcf6012
38acbea
050c3c1
cf01336
dc384ad
39344d4
3caccc6
b033a2a
c87e61b
5f317b7
9ce49e8
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Just for my own understanding, do you know why
ContextUpgradeable
doesn't have a__ContextUpgradeable_init
function to be called here?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.
ContextUPgradeable
has no state to initialize with so the init functions are emptyThere 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.
Gotcha, should we include calls to that here for completeness? In the event that state is added to those contracts in a future version I image we'd want to call it.
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.
still need to follow up this. If you include the Context init call, for new versions we'd need to check through the inheritance hierarchy to make sure there's no duplicates of initialize calls anyways. Likely if called, we can call the
init_unchained
call. Also was looking at OZ's OwnableUpgradeable which also inheritsContextUpgradeable
but they do not call the Context init function, so might ask OZ about that.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.
following convention in #397 (comment) to call
init
instead ofunchained
when not needed, went forward to callContext_init
as well for completeness, and no duplicate initializations.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.
Related OZ issue with their upgradeable contract transpiler not always calling the
init
functions of parent contracts OpenZeppelin/openzeppelin-contracts#4690