From ffdd8da2a9b27fce3ad8b52e64660b5effdaff1a Mon Sep 17 00:00:00 2001 From: Lee *!* Clagett Date: Sat, 16 Mar 2024 21:40:25 -0400 Subject: [PATCH] Make arrays optional in light_wallet_server api (#95) --- src/rpc/light_wallet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rpc/light_wallet.cpp b/src/rpc/light_wallet.cpp index 6b36575..3590784 100644 --- a/src/rpc/light_wallet.cpp +++ b/src/rpc/light_wallet.cpp @@ -273,7 +273,7 @@ namespace lws WIRE_FIELD_COPY(start_height), WIRE_FIELD_COPY(transaction_height), WIRE_FIELD_COPY(blockchain_height), - wire::field("transactions", wire::array(boost::adaptors::index(self.transactions))) + wire::optional_field("transactions", wire::array(boost::adaptors::index(self.transactions))) ); }