Skip to content

access-control:renounce

Renounce a role held by the connected account on an AccessControl contract or an AccessManager.

access-control:renounce <target> <role>
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
load access-control
set $token 0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb
set $manager 0xc0dbDcA66a0636236fAbe1B3C16B1bD4C84bB1E1
access-control:renounce $token MINTER_ROLE
access-control:renounce $manager 42
  • Renounces a role held by the connected account itself; the v5 renounceRole self-confirmation argument is filled in automatically.