Pass the correct program_id to programs (#8630)
This commit is contained in:
@ -4,7 +4,8 @@
|
||||
|
||||
extern crate solana_sdk;
|
||||
use solana_sdk::{
|
||||
account_info::AccountInfo, entrypoint, entrypoint::ProgramResult, info, log::*, pubkey::Pubkey,
|
||||
account_info::AccountInfo, bpf_loader, entrypoint, entrypoint::ProgramResult, info, log::*,
|
||||
pubkey::Pubkey,
|
||||
};
|
||||
|
||||
#[derive(Debug, PartialEq)]
|
||||
@ -28,6 +29,8 @@ fn process_instruction(
|
||||
info!("Program identifier:");
|
||||
program_id.log();
|
||||
|
||||
assert!(!bpf_loader::check_id(program_id));
|
||||
|
||||
// Log the provided account keys and instruction input data. In the case of
|
||||
// the no-op program, no account keys or input data are expected but real
|
||||
// programs will have specific requirements so they can do their work.
|
||||
|
Reference in New Issue
Block a user