From 14e126bb1e5ceb0389042e56f550c6440d591cce Mon Sep 17 00:00:00 2001 From: Yeastplume Date: Wed, 29 Jan 2020 15:11:09 +0000 Subject: [PATCH] add serde(default) specifier to ttl_blocks and payment_proof_recipient_address (#316) --- libwallet/src/api_impl/types.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libwallet/src/api_impl/types.rs b/libwallet/src/api_impl/types.rs index 3c4f318..7a6fb5b 100644 --- a/libwallet/src/api_impl/types.rs +++ b/libwallet/src/api_impl/types.rs @@ -92,9 +92,11 @@ pub struct InitTxArgs { pub target_slate_version: Option, /// Number of blocks from current after which TX should be ignored #[serde(with = "secp_ser::opt_string_or_u64")] + #[serde(default)] pub ttl_blocks: Option, /// If set, require a payment proof for the particular recipient #[serde(with = "dalek_ser::option_ov3_serde")] + #[serde(default)] pub payment_proof_recipient_address: Option, /// If true, just return an estimate of the resulting slate, containing fees and amounts /// locked without actually locking outputs or creating the transaction. Note if this is set to