Skip to main content

ensure_role_admin

Function ensure_role_admin 

Source
async fn ensure_role_admin<P: Provider<TempoNetwork>>(
    provider: &P,
    update: RoleUpdate,
    token: Address,
    role: Tip20Role,
    sender: Address,
) -> Result<()>
Expand description

Fails early when sender does not hold the admin role of role, instead of submitting a transaction the precompile rejects with a bare Unauthorized().