From 10000b4b34ebdac27571b05ebd2c6faf45af5595 Mon Sep 17 00:00:00 2001 From: Boog900 Date: Wed, 8 Jan 2025 01:58:43 +0000 Subject: [PATCH] rpc/types: add missing defaults to fields (#361) * add defaults to fields * Update rpc/types/src/bin.rs Co-authored-by: hinto-janai --------- Co-authored-by: hinto-janai --- rpc/types/src/bin.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rpc/types/src/bin.rs b/rpc/types/src/bin.rs index 414214ca..344aae33 100644 --- a/rpc/types/src/bin.rs +++ b/rpc/types/src/bin.rs @@ -132,8 +132,9 @@ define_request_and_response! { start_height: u64, current_height: u64, output_indices: Vec, - daemon_time: u64, - pool_info: PoolInfo, + daemon_time: u64 = default_zero::(), "default_zero", + // FIXME: use `default()` after + pool_info: PoolInfo = PoolInfo::None, "PoolInfo::default", } }