acl:set-role-admin
Set the admin role that manages grants and revocations of an AccessManager role.
Syntax
Section titled “Syntax”acl: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 acl
set $manager 0xc0dbDcA66a0636236fAbe1B3C16B1bD4C84bB1E1
# Let role 2 manage grants and revocations of role 42acl: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”- acl:set-role-guardian — set the cancelling role
- @acl:roleAdmin — read the current admin role