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

Revert upgradeTo in favor of upgradeToAndCall #4372

Closed

Conversation

Amxx
Copy link
Collaborator

@Amxx Amxx commented Jun 19, 2023

Depends on #4354 (conflicts will have to be fixed)

Remove the upgradeToAndCall to reduce the size (and deployment cost) of:

  • UUPSUpgradeable
  • TransparentUpgradeableProxy
  • ProxyAdmin

This includes a refactor of the upgradeToAndCall workflow: if the calldata for the call is empty, is call is no longer performed.

PR Checklist

  • Tests
  • Documentation
  • Changeset entry (run npx changeset add)

@changeset-bot
Copy link

changeset-bot bot commented Jun 19, 2023

⚠️ No Changeset found

Latest commit: 75f268a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@Amxx Amxx marked this pull request as draft June 19, 2023 19:37
@frangio
Copy link
Contributor

frangio commented Jun 19, 2023

By removing upgradeTo and changing the behavior of upgradeToAndCall this would seem to cause issues with OpenZeppelin Upgrades Plugins and other similar tooling. If we want to go ahead with this we would need a solution to detect which function to call, but it seems complicated.

@frangio
Copy link
Contributor

frangio commented Jun 28, 2023

Closing in favor of #4382.

@frangio frangio closed this Jun 28, 2023
@Amxx Amxx deleted the refactor/removeUpgradeWithoutCall branch April 3, 2024 23:25
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.

None yet

2 participants