Skip to main content

Signature

Description

Revokes role from account. Emits RoleRevoked.

Parameters

Reverts

  • AccessControlUnauthorizedAccount when the caller does not hold the admin role for role, or when the token has been transitioned to admin-less via renounceLastAdmin.
  • LastAdminCannotRenounce when role == DEFAULT_ADMIN_ROLE and account is the last default admin. Use renounceLastAdmin to clear the final admin.

Access control

Uses the B20 access-control role graph. Factory initCalls bypass role gates during creation.

Policy interaction

No direct policy interaction.

Example