(cherry picked from commit 4305d4b7b1
)
Co-authored-by: Justin Starry <justin@solana.com>
This commit is contained in:
@ -696,6 +696,10 @@ fn process_loader_upgradeable_instruction(
|
||||
ic_logger_msg!(logger, "Program account is not writable");
|
||||
return Err(InstructionError::InvalidArgument);
|
||||
}
|
||||
if &program_account.owner()? != program_id {
|
||||
ic_logger_msg!(logger, "Program account not owned by loader");
|
||||
return Err(InstructionError::IncorrectProgramId);
|
||||
}
|
||||
|
||||
match program_account.state()? {
|
||||
UpgradeableLoaderState::Program {
|
||||
|
Reference in New Issue
Block a user