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

F: Adds versions and upgrade tests to the contracts #54

Open
wants to merge 26 commits into
base: develop
Choose a base branch
from

Conversation

jordaniza
Copy link
Collaborator

No description provided.

@jordaniza jordaniza requested a review from xavikh February 14, 2025 14:24
Copy link

@carlosgj94 carlosgj94 left a comment

Choose a reason for hiding this comment

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

Let's change the link and think about if it's worth it having a different setup rather than the same


# Notes from the Halborn Audit

https://www.halborn.com/portal/reports/ve-governance-updates

Choose a reason for hiding this comment

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

Externals can't get this link. Let's change it directly to the one we are uploading in this PR.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

thanks will fix

@jordaniza jordaniza changed the title audit: cherry pick just the files needed for upgrading voting F: Adds versions and upgrade tests to the contracts Feb 19, 2025
// voter.upgradeTo(address(voterV1_1_0));

// safe upgrade
_safeUpgradeVoter(address(voter));

Choose a reason for hiding this comment

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

I'd still use upgradeTo instead of upgradeProxy helper. The reason being is in the actual upgrade, we don't use upgradeProxy. To keep things as close as possible, both the tests and the actual upgrade must follow the same flow.

Storage compatibility can still be tested without upgradeProxy.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

that's a fair point. Ideally we'd use a single upgrade factory

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.

3 participants