solana_sdk::bpf_loader_upgradeable

Function set_upgrade_authority_checked

Source
pub fn set_upgrade_authority_checked(
    program_address: &Pubkey,
    current_authority_address: &Pubkey,
    new_authority_address: &Pubkey,
) -> Instruction
Expand description

Returns the instructions required to set a program’s authority. If using this instruction, the new authority must sign.