diff --git a/sdk/src/native_program.rs b/sdk/src/native_program.rs index f3a270850d..d662d5b51c 100644 --- a/sdk/src/native_program.rs +++ b/sdk/src/native_program.rs @@ -25,6 +25,12 @@ pub enum ProgramError { /// Program spent the tokens of an account that doesn't belong to it ExternalAccountTokenSpend, + /// An account's userdata contents was invalid + InvalidUserdata, + + /// An account's userdata was too small + UserdataTooSmall, + /// SystemInstruction::Assign was attempted on an account unowned by the system program AssignOfUnownedAccount,