Skip to content

Instantly share code, notes, and snippets.

Created December 9, 2021 15:46
What would you like to do?
Solana Ownership Check
if account.owner != program_id {
msg!("Greeted account does not have the correct program id");
return Err(ProgramError::IncorrectProgramId);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment