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

Use latest upgrade executor #319

Draft
wants to merge 17 commits into
base: main
Choose a base branch
from
Draft

Use latest upgrade executor #319

wants to merge 17 commits into from

Conversation

godzillaba
Copy link
Collaborator

@godzillaba godzillaba commented Oct 16, 2024

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 build

the other commits are the upgrade action and tests

address public immutable newUpgradeExecutorImplementation = address(new UpgradeExecutor());

function perform() external {
_upgradeTo(newUpgradeExecutorImplementation);
Copy link
Collaborator

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?

Copy link
Collaborator Author

@godzillaba godzillaba Oct 18, 2024

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

Copy link
Collaborator Author

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

package.json Show resolved Hide resolved
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

Successfully merging this pull request may close these issues.

2 participants