diff --git a/components/chainhook-sdk/src/chainhooks/types.rs b/components/chainhook-sdk/src/chainhooks/types.rs index ad9cc22da..19dfcc1ee 100644 --- a/components/chainhook-sdk/src/chainhooks/types.rs +++ b/components/chainhook-sdk/src/chainhooks/types.rs @@ -770,7 +770,9 @@ pub enum StacksContractDeploymentPredicate { #[derive(Clone, Debug, Serialize, Deserialize, PartialEq, JsonSchema)] #[serde(rename_all = "snake_case")] pub struct StacksPrintEventBasedPredicate { + #[serde(skip_serializing_if = "Option::is_none")] pub contract_identifier: Option, + #[serde(skip_serializing_if = "Option::is_none")] pub contains: Option, }