Skip to content

Instantly share code, notes, and snippets.

View rejkowic's full-sized avatar

Paweł Rejkowicz rejkowic

View GitHub Profile
@rejkowic
rejkowic / entrypoint.rs
Created August 11, 2022 12:25
Securing Solana record program using types.
//! Program entrypoint
use solana_program::{
account_info::AccountInfo, entrypoint, entrypoint::ProgramResult, pubkey::Pubkey,
};
entrypoint!(process_instruction);
fn process_instruction<'a>(
program_id: &Pubkey,
accounts: &'a [AccountInfo<'a>],