23 lines
592 B
Rust
23 lines
592 B
Rust
use log::*;
|
|
use solana_sdk::account::KeyedAccount;
|
|
use solana_sdk::instruction::InstructionError;
|
|
use solana_sdk::pubkey::Pubkey;
|
|
|
|
solana_sdk::declare_program!(
|
|
"Noop111111111111111111111111111111111111111",
|
|
solana_noop_program,
|
|
process_instruction
|
|
);
|
|
|
|
fn process_instruction(
|
|
program_id: &Pubkey,
|
|
keyed_accounts: &[KeyedAccount],
|
|
data: &[u8],
|
|
) -> Result<(), InstructionError> {
|
|
solana_logger::setup();
|
|
trace!("noop: program_id: {:?}", program_id);
|
|
trace!("noop: keyed_accounts: {:#?}", keyed_accounts);
|
|
trace!("noop: data: {:?}", data);
|
|
Ok(())
|
|
}
|