Skip to content

Commit

Permalink
fix bank::tests::test_feature_activation_loaded_programs_recompilatio…
Browse files Browse the repository at this point in the history
…n_phase
  • Loading branch information
HaoranYi committed Nov 21, 2023
1 parent 3a6cae5 commit 1194285
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion runtime/src/accounts/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ fn load_transaction_accounts(
error_counters.account_not_found += 1;
return Err(TransactionError::ProgramAccountNotFound);
}

if !is_builtin_or_executable(program_account) {
error_counters.invalid_program_for_execution += 1;
return Err(TransactionError::InvalidProgramForExecution);
Expand All @@ -386,7 +387,7 @@ fn load_transaction_accounts(
if let Some((owner_account, _)) =
accounts_db.load_with_fixed_root(ancestors, owner_id)
{
if !is_builtin(&owner_account) || !is_executable(&owner_account) {
if !is_builtin(&owner_account) {
error_counters.invalid_program_for_execution += 1;
return Err(TransactionError::InvalidProgramForExecution);
}
Expand Down

0 comments on commit 1194285

Please sign in to comment.