solana-program-library/themis/program_ristretto/src/entrypoint.rs

16 lines
396 B
Rust
Raw Normal View History

//! Program entrypoint
use solana_program::{
account_info::AccountInfo, entrypoint, entrypoint::ProgramResult, pubkey::Pubkey,
};
entrypoint!(process_instruction);
2020-11-01 00:22:04 -07:00
fn process_instruction(
program_id: &Pubkey,
2020-11-01 00:22:04 -07:00
accounts: &[AccountInfo],
instruction_data: &[u8],
) -> ProgramResult {
crate::processor::process_instruction(program_id, accounts, instruction_data)?;
Ok(())
}