From a84dfe0f54116116f5a3c79642cd4111b1d4a5ac Mon Sep 17 00:00:00 2001 From: glihm Date: Wed, 12 Jun 2024 12:31:00 -0600 Subject: [PATCH] fix: add missing serde impl for NonZero --- crates/cairo-serde/src/types/non_zero.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/cairo-serde/src/types/non_zero.rs b/crates/cairo-serde/src/types/non_zero.rs index 6b34523..c9b38d6 100644 --- a/crates/cairo-serde/src/types/non_zero.rs +++ b/crates/cairo-serde/src/types/non_zero.rs @@ -6,7 +6,7 @@ use crate::{CairoSerde, ContractAddress, Result, U256}; use starknet::core::types::FieldElement; -#[derive(Debug, PartialEq, PartialOrd, Clone)] +#[derive(Debug, PartialEq, PartialOrd, Clone, serde::Serialize, serde::Deserialize)] pub struct NonZero(T); impl NonZero {