Skip to content

Use latest upgrade executor#319

Draft
godzillaba wants to merge 17 commits intomainfrom
new-up-exec
Draft

Use latest upgrade executor#319
godzillaba wants to merge 17 commits intomainfrom
new-up-exec

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

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