-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
Consider adding _authorizeUpgrade
to UpgradeableBeacon instead of using Ownable
#5158
Comments
Hi @fruiz08, Ownable also has an internal Still, I agree the |
_authorizeUpgrade
to UpgradeableBeacon instead of using Ownable
Hey @ernestognw, do you think I can open a PR for this? seems like it wouldn't take much time |
What woukld be the content of the PR? We cannot remove the
|
would be backward compatible, and it would allow a dev to override
It would be a clear case of "the code is safe", but its difficult to observe and can lead to mad management. |
Any reason why someone with specific requirements would not write their own beacon ? |
There is benefit of using an OZ implementation as it is, as you kind of give security for granted. Even small adaptations would require securities reviews, inflates audits and so on. There are also gains from maintainability perceptive, as if you move versions on OZ, you can trust retro-compatibility and mayors and consistency. |
🧐 Motivation
We want a more flexible way to be able to make upgrades and at the same time, maintain consistency on the approach used on UUPS pattern
📝 Details
Now, we cannot inherit from UpgradeableBeacon.sol and override the upgradeTo function removing the
OnlyOwner
modifier beacause _setImplementation is a private function.Suggestion: Use the _authorizeUpgrade like UUPSUpgradeable.sol to override it with the protected method you want
The text was updated successfully, but these errors were encountered: