Skip to content

Instantly share code, notes, and snippets.

@mattm
Created Dec 9, 2021
Embed
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