-
Notifications
You must be signed in to change notification settings - Fork 30
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
Use latest upgrade executor #319
base: main
Are you sure you want to change the base?
Conversation
address public immutable newUpgradeExecutorImplementation = address(new UpgradeExecutor()); | ||
|
||
function perform() external { | ||
_upgradeTo(newUpgradeExecutorImplementation); |
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.
not a big fan of using ERC1967Upgrade
to modify the storage slot directly, can we just have it go through the proxy admin instead?
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.
yeah we can do that, i have a couple versions at earlier commits that do
eg d74a6d9#diff-96112336c8e4f94e4f509a6e67874a61d2637890f110f1b10e95998a50996812
eg2 (gets proxy admin at perform time) 90fb0bc#diff-96112336c8e4f94e4f509a6e67874a61d2637890f110f1b10e95998a50996812
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.
reverted back to the first example
should merge #317 first
51db9a3 removes the
UpgradeExecutor
source and tests from this repo and replaces it with the@offchainlabs/upgrade-executor
npm package. A lot of files needed small changes to buildthe other commits are the upgrade action and tests