From a0bcbf70d5875dda513774d63d348cc2ec084034 Mon Sep 17 00:00:00 2001 From: Jack May Date: Fri, 14 Feb 2020 13:58:33 -0800 Subject: [PATCH] Cleanup new_result_with_negative_lamports (#8286) --- sdk/src/instruction.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/src/instruction.rs b/sdk/src/instruction.rs index cb95c1f451..247dc17d49 100644 --- a/sdk/src/instruction.rs +++ b/sdk/src/instruction.rs @@ -98,7 +98,7 @@ pub enum InstructionError { impl InstructionError { pub fn new_result_with_negative_lamports() -> Self { - InstructionError::CustomError(SystemError::ResultWithNegativeLamports as u32) + SystemError::ResultWithNegativeLamports.into() } }