acl:set-role-admin
Set the admin role that manages grants and revocations of an AccessManager role.
⚗️ Experimental — available at next.evmcrispr.com.
Supports runtime fields inside smart blocks. Use explicit @helper! expressions or captured outputs; other fields are evaluated at build time.
Syntax
Section titled “Syntax”acl:set-role-admin <manager> <roleId> <adminRoleId>Arguments
Section titled “Arguments”| Name | Type | Evaluation | Description |
|---|---|---|---|
manager | address | Runtime in smart blocks | AccessManager address |
roleId | number | string | Runtime in smart blocks | Role id (or ADMIN_ROLE / PUBLIC_ROLE) |
adminRoleId | number | string | Runtime in smart blocks | 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