1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
use log::*; use solana_sdk::{ instruction::InstructionError, keyed_account::KeyedAccount, process_instruction::InvokeContext, pubkey::Pubkey, }; solana_sdk::declare_program!( "Noop111111111111111111111111111111111111111", solana_noop_program, process_instruction ); pub fn process_instruction( program_id: &Pubkey, keyed_accounts: &[KeyedAccount], data: &[u8], _invoke_context: &mut dyn InvokeContext, ) -> Result<(), InstructionError> { solana_logger::setup(); trace!("noop: program_id: {:?}", program_id); trace!("noop: keyed_accounts: {:#?}", keyed_accounts); trace!("noop: data: {:?}", data); Ok(()) }