diff --git a/sdk/src/types/api/core.rs b/sdk/src/types/api/core.rs index db1b1ffe7a..1a0648cf53 100644 --- a/sdk/src/types/api/core.rs +++ b/sdk/src/types/api/core.rs @@ -268,8 +268,10 @@ pub struct IssuanceBlockHeaderResponse { /// Blocks that are strongly directly approved. pub strong_parents: BTreeSet, /// Blocks that are weakly directly approved. + #[serde(default, skip_serializing_if = "BTreeSet::is_empty")] pub weak_parents: BTreeSet, /// Blocks that are directly referenced to adjust opinion. + #[serde(default, skip_serializing_if = "BTreeSet::is_empty")] pub shallow_like_parents: BTreeSet, /// The slot index of the latest finalized slot. pub latest_finalized_slot: SlotIndex, diff --git a/sdk/src/wallet/operations/block.rs b/sdk/src/wallet/operations/block.rs index b6857c9c76..93f1a63914 100644 --- a/sdk/src/wallet/operations/block.rs +++ b/sdk/src/wallet/operations/block.rs @@ -13,7 +13,7 @@ where crate::client::Error: From, { pub(crate) async fn submit_basic_block(&self, payload: Option) -> Result { - log::debug!("submit_block"); + log::debug!("submit_basic_block"); let block = self .client()