-
Notifications
You must be signed in to change notification settings - Fork 3
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
[feat]: add renounce role script #8
Conversation
script/renounce_for_public.s.sol
Outdated
// after adjust check | ||
require( | ||
depls.oracle.getRoleMemberCount(depls.oracle.ORACLE_MANAGER_ROLE()) == 1, | ||
"Oracle.DEFAULT_ADMIN_ROLE expect 1 member" |
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.
should the role name in msg be ORACLE_MANAGER_ROLE
?
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.
Done
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.
LGTM
depls.proxyAdmin.revokeRole(depls.proxyAdmin.TIMELOCK_ADMIN_ROLE(), lspMultiSig); | ||
depls.proxyAdmin.renounceRole(depls.proxyAdmin.TIMELOCK_ADMIN_ROLE(), deployer); |
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.
Count the expected number of holders for this one after? Quite important role
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.
Timelock don't have getRoleMemberCount there
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 can see this is also confirmed later in the script.
No description provided.