Enable program upgrades via CPI (#14449)

This commit is contained in:
Jack May
2021-01-06 14:31:14 -08:00
committed by GitHub
parent a89ba32b24
commit 5eacc5d08d
3 changed files with 93 additions and 5 deletions

View File

@ -172,6 +172,10 @@ pub fn upgrade(
)
}
pub fn is_upgrade_instruction(instruction_data: &[u8]) -> bool {
3 == instruction_data[0]
}
/// Returns the instructions required to set a program's authority.
pub fn set_authority(
program_address: &Pubkey,