set_authority

Function set_authority 

Source
pub fn set_authority<'info>(
    ctx: CpiContext<'_, '_, '_, 'info, SetAuthority<'info>>,
    authority_type: AuthorityType,
    new_authority: Option<Pubkey>,
) -> Result<()>