Signature
IB20.sol
Description
Revokesrole from account and emits RoleRevoked(role, account, sender). B20 follows OpenZeppelin AccessControl semantics, under which revoking a role the account does not hold changes nothing and emits no event.
Parameters
Reverts
AccessControlUnauthorizedAccount: caller does not hold the admin role forrole, or the token has no admins (transitioned viarenounceLastAdmin).LastAdminCannotRenounce:role == DEFAULT_ADMIN_ROLEandaccountis the last remainingDEFAULT_ADMIN_ROLEholder. UserenounceLastAdminto clear the final admin intentionally.
Access Control
The caller must holdgetRoleAdmin(role). On a fresh token every role’s admin is DEFAULT_ADMIN_ROLE. After setRoleAdmin is called the new admin role applies; revokeRole is not hardcoded to DEFAULT_ADMIN_ROLE.
Policy Interaction
No direct policy interaction.Example
Usage Example