set_admin

Function set_admin 

Source
pub fn set_admin(e: &Env, admin: &Address)
Expand description

Sets the overarching admin role.

§Arguments

  • e - Access to Soroban environment.
  • admin - The account to grant the admin privilege.

§Errors

IMPORTANT: this function lacks authorization checks. It is expected to call this function only in the constructor!