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

[feat]: add renounce role script #8

Merged
merged 2 commits into from
Nov 8, 2023
Merged

Conversation

Sha3nS
Copy link
Contributor

@Sha3nS Sha3nS commented Nov 8, 2023

No description provided.

// after adjust check
require(
depls.oracle.getRoleMemberCount(depls.oracle.ORACLE_MANAGER_ROLE()) == 1,
"Oracle.DEFAULT_ADMIN_ROLE expect 1 member"
Copy link
Contributor

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 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Copy link
Contributor

@shidaxi shidaxi left a comment

Choose a reason for hiding this comment

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

LGTM

@Sha3nS Sha3nS merged commit b0699a5 into main Nov 8, 2023
1 check passed
@Sha3nS Sha3nS deleted the add-reounce-check-script branch November 8, 2023 11:32
Comment on lines +645 to +646
depls.proxyAdmin.revokeRole(depls.proxyAdmin.TIMELOCK_ADMIN_ROLE(), lspMultiSig);
depls.proxyAdmin.renounceRole(depls.proxyAdmin.TIMELOCK_ADMIN_ROLE(), deployer);
Copy link
Collaborator

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

Copy link
Contributor Author

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

Copy link
Collaborator

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.

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.

4 participants