Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// For accounts unassigned to the program, the data may not change.
if *program_id != account.owner
&& !system_program::check_id(&program_id)
&& pre_data != &[..]
return Err(InstructionError::ExternalAccountDataModified);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment