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

Update forge-std, fix compiler warnings #30

Merged
merged 8 commits into from
Mar 20, 2024

Conversation

ericglau
Copy link
Member

@ericglau ericglau commented Mar 15, 2024

  • Updates forge-std to v1.8.0, restrict state mutability of some functions to avoid compiler warnings.
    • Note: This is a breaking change, requiring the user's project to use forge-std v1.8.0 or later.
  • One of the test contracts in this project has a selfdestruct, which we use as part of the upgrade safety validation tests. However, this gives a compiler warning since selfdestruct is deprecated. This PR changes this tescase to use a delegatecall instead.

@ericglau ericglau requested a review from a team March 15, 2024 19:46
@ericglau ericglau changed the title Update testcase to avoid selfdestruct warning Fix compiler warnings Mar 15, 2024
@ericglau ericglau changed the title Fix compiler warnings Fix compiler warning Mar 15, 2024
@ericglau ericglau changed the title Fix compiler warning Update testcase to avoid selfdestruct warning Mar 15, 2024
@ericglau ericglau changed the title Update testcase to avoid selfdestruct warning Update forge-std, fix compiler warnings Mar 15, 2024
@ericglau ericglau merged commit ebf5a0f into OpenZeppelin:main Mar 20, 2024
3 checks passed
@ericglau ericglau deleted the avoidselfdestruct branch March 20, 2024 15:02
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