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 functions public #3923 #3984

Closed
wants to merge 1 commit into from
Closed

Make upgradeTo functions public #3923 #3984

wants to merge 1 commit into from

Conversation

Ankitvnsbihar
Copy link

Title: Make function upgradeTo public

Description:
This PR makes the function upgradeTo(address newImplementation) public by adding the public keyword before the function keyword. This allows external contracts or users to call the function and upgrade the implementation of the contract.

Changes:

The public keyword has been added before the function keyword in the function definition of upgradeTo(address newImplementation).

Testing:
I have tested the function by calling it from an external contract and it worked as expected.

Context:
This change is needed to allow external contracts or users to upgrade the implementation of the contract.

Breaking Changes:
None, this change only makes the function public and should not affect the existing functionality of the contract.

@changeset-bot
Copy link

changeset-bot bot commented Jan 21, 2023

⚠️ No Changeset found

Latest commit: 1d067e8

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

@frangio
Copy link
Contributor

frangio commented Jan 27, 2023

Duplicate of #3959.

@frangio frangio closed this Jan 27, 2023
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