Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
use debug_assert
Browse files Browse the repository at this point in the history
  • Loading branch information
pgarg66 committed Jul 21, 2023
1 parent 47661fe commit b4bc25a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions runtime/src/bank.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4802,9 +4802,9 @@ impl Bank {
Some(account) => account,
};

if !solana_bpf_loader_program::check_loader_id(program_account.owner()) {
return ProgramAccountLoadResult::InvalidAccountData;
}
debug_assert!(solana_bpf_loader_program::check_loader_id(
program_account.owner()
));

if !bpf_loader_upgradeable::check_id(program_account.owner()) {
return ProgramAccountLoadResult::ProgramOfLoaderV1orV2(program_account);
Expand Down

0 comments on commit b4bc25a

Please sign in to comment.