From ab84fd63a24ac32b5cc89384c54b54b0e7517193 Mon Sep 17 00:00:00 2001 From: Lucas Clemente Vella Date: Tue, 15 Aug 2023 18:54:42 +0100 Subject: [PATCH] Ommiting Reference::polType field in serialization if not avaliable. This mimics better pilcom behavior. --- starky/src/types.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/starky/src/types.rs b/starky/src/types.rs index 79510ce3..2e822278 100644 --- a/starky/src/types.rs +++ b/starky/src/types.rs @@ -18,6 +18,7 @@ pub struct Public { #[derive(Serialize, Deserialize, Debug, Clone)] pub struct Reference { + #[serde(skip_serializing_if = "Option::is_none")] pub polType: Option, #[serde(rename = "type")] pub type_: String,