access-control:renounce
Renounce a role held by the connected account on an AccessControl contract or an AccessManager.
Syntax
Section titled “Syntax”access-control:renounce <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 access-control
set $token 0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdbset $manager 0xc0dbDcA66a0636236fAbe1B3C16B1bD4C84bB1E1
access-control:renounce $token MINTER_ROLEaccess-control:renounce $manager 42- Renounces a role held by the connected account itself; the v5
renounceRoleself-confirmation argument is filled in automatically.
See Also
Section titled “See Also”- access-control:revoke — remove someone else’s role