-
-
Save mattm/ad6ad326fd09e98cc2c2ae3317a9aceb to your computer and use it in GitHub Desktop.
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
// For accounts unassigned to the program, the data may not change. | |
if *program_id != account.owner | |
&& !system_program::check_id(&program_id) | |
&& pre_data != &account.data[..] | |
{ | |
return Err(InstructionError::ExternalAccountDataModified); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment