diff --git a/sdk/src/types/block/mana/allotment.rs b/sdk/src/types/block/mana/allotment.rs index 3b2f4c5c7e..2bd88c69f1 100644 --- a/sdk/src/types/block/mana/allotment.rs +++ b/sdk/src/types/block/mana/allotment.rs @@ -26,7 +26,7 @@ use crate::types::block::{ pub struct ManaAllotment { pub(crate) account_id: AccountId, #[packable(verify_with = verify_mana)] - #[serde(with = "crate::utils::serde::string")] + #[cfg_attr(feature = "serde", serde(with = "crate::utils::serde::string"))] pub(crate) mana: u64, }