Not-upgradable Solana Program

PHOTO EMBED

Wed Mar 08 2023 17:41:12 GMT+0000 (Coordinated Universal Time)

Saved by @luisjdominguezp ##rust

use solana_program::{
    account_info:: AccountInfo, entrypoint, entrypoint::ProgramResult, msg, pubkey::Pubkey,

};

entrypoint!(process_instructions);
fn process_instructions(
    program_id: &Pubkey,
    accounts: &[AccountInfo],
    instruction_data: &[u8],
) -> ProgramResult{

    msg!("Program id: {}, accounts: {}, instructions: {:?}",
        program_id,
        accounts.len(),
        instruction_data
    );

    Ok(())
}
content_copyCOPY