Reorder InstructionError to remain compatible with v0.23

This commit is contained in:
Michael Vines 2020-02-27 14:41:17 -07:00
parent 82c6992d6f
commit 7dac8e2dde
1 changed files with 4 additions and 4 deletions

View File

@ -86,14 +86,14 @@ pub enum InstructionError {
/// the runtime cannot determine which changes to pick or how to merge them if both are modified
DuplicateAccountOutOfSync,
/// The return value from the program was invalid. Valid errors are either a defined builtin
/// error value or a user-defined error in the lower 32 bits.
InvalidError,
/// Allows on-chain programs to implement program-specific error types and see them returned
/// by the Solana runtime. A program-specific error may be any type that is represented as
/// or serialized to a u32 integer.
CustomError(u32),
/// The return value from the program was invalid. Valid errors are either a defined builtin
/// error value or a user-defined error in the lower 32 bits.
InvalidError,
}
impl InstructionError {