Skip to content

Conversation

@ericglau
Copy link
Member

@ericglau ericglau commented Sep 22, 2023

Fixes #881

This PR enables the use of UUPS implementations and proxy admins from OpenZeppelin Contracts 5.0. Other 5.0 proxy kinds can be imported as well (added test cases).

  • Call upgradeToAndCall depending on UPGRADE_INTERFACE_VERSION
    • when upgrading with a UUPS implementation
    • when upgrading a transparent proxy using a 5.0 proxy admin (which was imported via forceImport)
  • Fixes inferring of UUPS proxies when only upgradeToAndCall is available
  • Add note about changeProxyAdmin not being supported for 5.0 admins or proxies

@ericglau ericglau requested review from Amxx and frangio September 22, 2023 23:01
@ericglau ericglau marked this pull request as draft September 25, 2023 19:53
@ericglau ericglau removed request for Amxx and frangio September 25, 2023 19:53
@socket-security
Copy link

New dependencies detected. Learn more about Socket for GitHub ↗︎

Packages Version New capabilities Transitives Size Publisher
@openzeppelin/contracts 5.0.0-rc.0 None +0 1.69 MB frangio

@ericglau ericglau marked this pull request as ready for review September 25, 2023 21:21
@ericglau ericglau requested a review from frangio September 25, 2023 21:21
@ericglau ericglau requested a review from a team September 26, 2023 16:10
Copy link
Contributor

@frangio frangio left a comment

Choose a reason for hiding this comment

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

Looks good, minor comments above.

@ericglau ericglau requested a review from frangio September 27, 2023 02:12
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.

Call upgradeToAndCall with no data

3 participants