From 4e63aeb36ca1802af0c7b3d5448c3de4846aee58 Mon Sep 17 00:00:00 2001 From: Gabriele Picco Date: Thu, 18 Dec 2025 13:00:14 +0100 Subject: [PATCH] chore: add errors to SDK --- src/error.rs | 1 + src/lib.rs | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/error.rs b/src/error.rs index 8006ded..99565d4 100644 --- a/src/error.rs +++ b/src/error.rs @@ -89,6 +89,7 @@ impl From for ProgramError { } } +#[cfg(not(feature = "sdk"))] impl From for pinocchio::program_error::ProgramError { fn from(e: DlpError) -> Self { pinocchio::program_error::ProgramError::Custom(e as u32) diff --git a/src/lib.rs b/src/lib.rs index b145c46..9a405ec 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -26,7 +26,6 @@ use solana_program::msg; pub mod args; pub mod consts; mod discriminator; -#[cfg(not(feature = "sdk"))] pub mod error; pub mod instruction_builder; pub mod pda;