pub fn grant_role(
    program: &Program,
    principal: Pubkey,
    role: u8,
    dflow_admin: Pubkey
) -> Instruction
Expand description

This instruction grants the specified role to the principal.

Arguments

  • principal The public key of the principal account.
  • role The role to grant to the principal.
  • dflow_admin The public key of the DFlow admin. This account is a signer for the instruction. This account is expected to be mutable

Returns an instruction