Created
December 9, 2021 15:46
-
-
Save mattm/1e2e42f5ea15c43002403fa10f2177ae to your computer and use it in GitHub Desktop.
Solana Ownership Check
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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