diff --git a/sdk/instruction/src/lib.rs b/sdk/instruction/src/lib.rs index b94ebf9df7ea2d..3f3cdc00d9b352 100644 --- a/sdk/instruction/src/lib.rs +++ b/sdk/instruction/src/lib.rs @@ -105,6 +105,11 @@ pub struct Instruction { /// is fixed. This must not diverge from the regular non-wasm Instruction struct. #[cfg(all(feature = "std", target_arch = "wasm32"))] #[wasm_bindgen::prelude::wasm_bindgen] +#[cfg_attr( + feature = "serde", + derive(serde_derive::Serialize, serde_derive::Deserialize) +)] +#[derive(Debug, PartialEq, Eq, Clone)] pub struct Instruction { #[wasm_bindgen(skip)] pub program_id: Pubkey,