From 7dac8e2dde31548eb1fd11a19c56e31a26f618b0 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Thu, 27 Feb 2020 14:41:17 -0700 Subject: [PATCH] Reorder InstructionError to remain compatible with v0.23 --- sdk/src/instruction.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sdk/src/instruction.rs b/sdk/src/instruction.rs index 247dc17d49..a4717a54bb 100644 --- a/sdk/src/instruction.rs +++ b/sdk/src/instruction.rs @@ -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 {