solana/programs/noop_program/src/lib.rs

19 lines
520 B
Rust
Raw Normal View History

use log::*;
use solana_sdk::account::KeyedAccount;
2019-03-23 20:12:27 -07:00
use solana_sdk::instruction::InstructionError;
2018-11-17 17:02:14 -08:00
use solana_sdk::pubkey::Pubkey;
2018-12-14 20:39:10 -08:00
use solana_sdk::solana_entrypoint;
solana_entrypoint!(entrypoint);
2018-11-17 17:02:14 -08:00
fn entrypoint(
program_id: &Pubkey,
keyed_accounts: &mut [KeyedAccount],
data: &[u8],
) -> Result<(), InstructionError> {
solana_logger::setup();
trace!("noop: program_id: {:?}", program_id);
trace!("noop: keyed_accounts: {:#?}", keyed_accounts);
trace!("noop: data: {:?}", data);
2018-12-03 13:32:31 -08:00
Ok(())
}