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

Make upgradeTo and upgradeToAndCall public #3959

Merged

Conversation

m-waqas88
Copy link
Contributor

@m-waqas88 m-waqas88 commented Jan 16, 2023

Fixes #3923

Two functions upgradeTo and upgradeToAndCall were having visibility specifiers as external and virtual, due to this reason derived contract was not able to invoke the function using super keyword. I just replaced external with public so that it can be invoked as well as overridden as expected.

PR Checklist

  • Tests
  • Documentation
  • Changelog entry

Copy link
Contributor

@JulissaDantes JulissaDantes left a comment

Choose a reason for hiding this comment

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

Please check the other contracts using the UUPSUpgradeable contract. All the check must pass, and right now the library its not compiling.

@changeset-bot
Copy link

changeset-bot bot commented Jan 22, 2023

⚠️ No Changeset found

Latest commit: dd4d0d2

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.

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

@frangio frangio changed the title fix: make upgradeTo and upgradeToAndCall functions public (#3923) Make upgradeTo and upgradeToAndCall public Jan 24, 2023
@m-waqas88 m-waqas88 requested review from Amxx and JulissaDantes and removed request for Amxx January 25, 2023 12:33
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.

Thanks.

@frangio frangio merged commit 69c8d10 into OpenZeppelin:master Jan 25, 2023
@gitpoap-bot
Copy link

gitpoap-bot bot commented Jan 25, 2023

Congrats, your important contribution to this open-source project has earned you a GitPOAP!

GitPOAP: 2023 OpenZeppelin Contracts Contributor:

GitPOAP: 2023 OpenZeppelin Contracts Contributor GitPOAP Badge

Head to gitpoap.io & connect your GitHub account to mint!

Learn more about GitPOAPs here.

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.

Make upgradeTo functions public
4 participants