access-control:set-role-admin
Set the admin role that manages grants and revocations of an AccessManager role.
Syntax
Section titled “Syntax”access-control:set-role-admin <manager> <roleId> <adminRoleId>Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
manager |
address |
AccessManager address |
roleId |
number | string |
Role id (or ADMIN_ROLE / PUBLIC_ROLE) |
adminRoleId |
number | string |
New admin role id |
Examples
Section titled “Examples”load access-control
set $manager 0xc0dbDcA66a0636236fAbe1B3C16B1bD4C84bB1E1
# Let role 2 manage grants and revocations of role 42access-control:set-role-admin $manager 42 2- Only members of the AccessManager
ADMIN_ROLE(role 0) can change role admins.
See Also
Section titled “See Also”- access-control:set-role-guardian — set the cancelling role
- @access-control.roleAdmin — read the current admin role