Skip to content

Instantly share code, notes, and snippets.

@tina1998612
Created July 18, 2021 10:44
Show Gist options
  • Save tina1998612/1d54a8f899924b785ce551e8bb6af266 to your computer and use it in GitHub Desktop.
Save tina1998612/1d54a8f899924b785ce551e8bb6af266 to your computer and use it in GitHub Desktop.
use solana_program::{
account_info::{next_account_info, AccountInfo},
entrypoint,
entrypoint::ProgramResult,
msg,
program_error::ProgramError,
pubkey::Pubkey,
};
entrypoint!(process_instruction);
pub fn process_instruction(
program_id: &Pubkey,
accounts: &[AccountInfo],
_instruction_data: &[u8],
) -> ProgramResult {
msg!("Hello World Rust program entrypoint");
Ok(())
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment