-
Notifications
You must be signed in to change notification settings - Fork 0
feat: make contracts upgradable #4
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
Conversation
…ns in deployment scripts
…nd adjust submodule paths
…ripts for UUPS proxy pattern
src/RLCOFT.sol
Outdated
| function owner() | ||
| public | ||
| view | ||
| override(OwnableUpgradeable, AccessControlDefaultAdminRulesUpgradeable) | ||
| returns (address) | ||
| { | ||
| return AccessControlDefaultAdminRulesUpgradeable.owner(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need a double check here @zguesmi 🙂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's better to return the actual owner of the contract otherwise it can lead to errors.
…oving outdated files and improving structure
…onment variables and script parameters
…rity in RLCAdapter and RLCOFT contracts
…d RLCOFT contracts
… is enabled in foundry.toml
…nd RLCOFT scripts
…r and RLCOFT deployment scripts
…deployment in RLCAdapter and RLCOFT scripts
src/RLCOFT.sol
Outdated
| function owner() | ||
| public | ||
| view | ||
| override(OwnableUpgradeable, AccessControlDefaultAdminRulesUpgradeable) | ||
| returns (address) | ||
| { | ||
| return AccessControlDefaultAdminRulesUpgradeable.owner(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's better to return the actual owner of the contract otherwise it can lead to errors.
…ment script for consistency
… to use OwnableUpgradeable
|
i fix to change and use owner from OwnableUpgradeable |
zguesmi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well done!
No description provided.