executable() (#16880)

This commit is contained in:
Jeff Washington (jwash)
2021-04-28 08:53:54 -05:00
committed by GitHub
parent 30e83a4a3c
commit 2021255f91
3 changed files with 7 additions and 7 deletions

View File

@@ -1022,7 +1022,7 @@ mod tests {
process_instruction(&bpf_loader::id(), &instruction_data, &mut invoke_context)
);
let keyed_accounts = invoke_context.get_keyed_accounts().unwrap();
assert!(keyed_accounts[0].account.borrow().executable);
assert!(keyed_accounts[0].account.borrow().executable());
program_account.borrow_mut().executable = false; // Un-finalize the account