@acl:roleAdmin
Admin role that controls a role: a bytes32 value on AccessControl contracts, a role id on AccessManagers.
Returns: bytes32 | number
Syntax
Section titled “Syntax”@acl:roleAdmin(target role)Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
target | address | AccessControl contract or AccessManager address |
role | number | string | Role name (e.g. MINTER_ROLE), bytes32 value, or AccessManager role id |
Examples
Section titled “Examples”load acl
set $token 0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdbset $manager 0xc0dbDcA66a0636236fAbe1B3C16B1bD4C84bB1E1
# bytes32 admin role of an AccessControl roleprint @acl:roleAdmin($token MINTER_ROLE)
# numeric admin role of an AccessManager roleprint @acl:roleAdmin($manager 42)