acl:renounce
Renounce a role held by the connected account on an AccessControl contract or an AccessManager.
⚗️ 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:renounce <role> <on> <target>Arguments
Section titled “Arguments”| Name | Type | Evaluation | Description |
|---|---|---|---|
role | number | string | Runtime in smart blocks | Role name (e.g. MINTER_ROLE), bytes32 value, or AccessManager role id; runtime roles must be bytes32 or integers |
on | command | Build time | Keyword on |
target | address | Runtime in smart blocks | AccessControl contract or AccessManager address |
Examples
Section titled “Examples”load acl
set $token 0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdbset $manager 0xc0dbDcA66a0636236fAbe1B3C16B1bD4C84bB1E1
acl:renounce MINTER_ROLE on $tokenacl:renounce 42 on $manager- Renounces a role held by the connected account itself; the v5
renounceRoleself-confirmation argument is filled in automatically.
See Also
Section titled “See Also”- acl:revoke — remove someone else's role