From f8dcf8653629d01d5d4355bd34d1c7b419124049 Mon Sep 17 00:00:00 2001 From: Thibault Martinez Date: Mon, 20 Nov 2023 17:30:35 +0100 Subject: [PATCH] CLI: add ImplicitAccount kind str to output lists (#1653) --- cli/src/wallet_cli/mod.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cli/src/wallet_cli/mod.rs b/cli/src/wallet_cli/mod.rs index d1f3b4fb8d..304b582e76 100644 --- a/cli/src/wallet_cli/mod.rs +++ b/cli/src/wallet_cli/mod.rs @@ -1203,11 +1203,17 @@ async fn print_outputs(mut outputs: Vec, title: &str) -> Result<(), outputs.sort_unstable_by(outputs_ordering); for (i, output_data) in outputs.into_iter().enumerate() { + let kind_str = if output_data.output.is_implicit_account() { + "ImplicitAccount" + } else { + output_data.output.kind_str() + }; + println_log_info!( "{:<5}{}\t{}\t{}", i, &output_data.output_id, - output_data.output.kind_str(), + kind_str, if output_data.is_spent { "Spent" } else { "Unspent" }, ); }