solana/programs/native/noop/src/lib.rs

20 lines
493 B
Rust
Raw Normal View History

#[macro_use]
extern crate solana_sdk;
use solana_sdk::account::KeyedAccount;
2018-11-17 17:02:14 -08:00
use solana_sdk::pubkey::Pubkey;
solana_entrypoint!(entrypoint);
2018-11-17 17:02:14 -08:00
fn entrypoint(
program_id: &Pubkey,
keyed_accounts: &mut [KeyedAccount],
data: &[u8],
tick_height: u64,
) -> bool {
println!("noop: program_id: {:?}", program_id);
println!("noop: keyed_accounts: {:#?}", keyed_accounts);
println!("noop: data: {:?}", data);
2018-11-13 18:18:40 -08:00
println!("noop: tick_height: {:?}", tick_height);
true
}