AccountSharedData.set_executable (#16836)

This commit is contained in:
Jeff Washington (jwash)
2021-04-27 09:56:50 -05:00
committed by GitHub
parent 3887169db0
commit 69bfbf9e98
2 changed files with 4 additions and 4 deletions

View File

@@ -418,7 +418,7 @@ fn process_loader_upgradeable_instruction(
program.set_state(&UpgradeableLoaderState::Program {
programdata_address: *programdata.unsigned_key(),
})?;
program.try_account_ref_mut()?.executable = true;
program.try_account_ref_mut()?.set_executable(true);
// Drain the Buffer account back to the payer
payer
@@ -695,7 +695,7 @@ fn process_loader_instruction(
let keyed_accounts = invoke_context.get_keyed_accounts()?;
let program = keyed_account_at_index(keyed_accounts, 0)?;
invoke_context.add_executor(program.unsigned_key(), executor);
program.try_account_ref_mut()?.executable = true;
program.try_account_ref_mut()?.set_executable(true);
ic_msg!(
invoke_context,
"Finalized account {:?}",