Skip to main content
Related concept

Signature

Description

Sets the admin role for role. Emits RoleAdminChanged. Dev: Reverts with AccessControlUnauthorizedAccount when the caller does not hold the current admin role for role, or when the token has been transitioned to admin-less via renounceLastAdmin. Param: role Role whose admin is being updated. Param: newAdminRole New admin role.

Access control

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

Policy interaction

No direct policy interaction.

Example