2020-09-11 18:49:00 -07:00
|
|
|
//! @brief Example Rust-based BPF noop program
|
2018-10-04 09:44:44 -07:00
|
|
|
|
2020-10-23 17:22:10 -07:00
|
|
|
extern crate solana_program;
|
|
|
|
use solana_program::{
|
2020-09-11 18:49:00 -07:00
|
|
|
account_info::AccountInfo, entrypoint, entrypoint::ProgramResult, pubkey::Pubkey,
|
2019-09-06 17:32:14 -07:00
|
|
|
};
|
2019-01-02 15:12:42 -08:00
|
|
|
|
2019-05-21 13:39:27 -07:00
|
|
|
entrypoint!(process_instruction);
|
2020-12-13 17:26:34 -08:00
|
|
|
#[allow(clippy::unnecessary_wraps)]
|
2020-01-24 13:41:14 -08:00
|
|
|
fn process_instruction(
|
2020-09-11 18:49:00 -07:00
|
|
|
_program_id: &Pubkey,
|
|
|
|
_accounts: &[AccountInfo],
|
|
|
|
_instruction_data: &[u8],
|
2020-02-04 12:25:42 -08:00
|
|
|
) -> ProgramResult {
|
2020-01-30 09:47:22 -08:00
|
|
|
Ok(())
|
2018-10-04 09:44:44 -07:00
|
|
|
}
|