pub fn set_role_admin(e: &Env, role: &Symbol, admin_role: &Symbol)Expand description
Sets admin_role as the admin role for role.
The admin role for a role controls who can grant and revoke that role.
§Arguments
e- Access to Soroban environment.role- The role to set the admin for.admin_role- The role that will be the admin.
§Events
- topics -
["role_admin_changed", role: Symbol] - data -
[previous_admin_role: Symbol, new_admin_role: Symbol]
§Errors
AccessControlError::AdminNotSet- If admin account is not set.
§Notes
- Authorization for the current admin is required.