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

chore: rewrite transferOwnership script to use Foundry #158

Merged
merged 12 commits into from
Jun 7, 2024

Conversation

fedgiac
Copy link
Contributor

@fedgiac fedgiac commented Jun 6, 2024

Description

The transferOwnership script has been ported to Foundry, with feature parity, including tests.

There was the need for a few workarounds in the tests, mostly because prank and broadcast aren't compatible with each other and because our proxy is based on Solidity 0.7 and its code isn't directly available in this repo.

Test Plan

New tests.
I also deployed a new set of contracts on Sepolia and used the script to change the owner and manager. You can see the two resulting transactions for the manager and the owner.

Related Issues

Closes #102
Closes #103

@fedgiac fedgiac requested a review from a team as a code owner June 6, 2024 10:22
Copy link
Contributor

@mfw78 mfw78 left a comment

Choose a reason for hiding this comment

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

Mostly nits. Just notes on please moving scripts to the root directory.

Copy link
Contributor

@mfw78 mfw78 left a comment

Choose a reason for hiding this comment

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

Seems plurality strike (sic) again. We should be putting scripts in script 🙈

@fedgiac fedgiac merged commit 76e2363 into main Jun 7, 2024
9 checks passed
@fedgiac fedgiac deleted the script-change-proxy-owner branch June 7, 2024 12:43
@github-actions github-actions bot locked and limited conversation to collaborators Jun 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants