Skip to content

Commit

Permalink
CLI: add ImplicitAccount kind str to output lists (#1653)
Browse files Browse the repository at this point in the history
  • Loading branch information
thibault-martinez authored Nov 20, 2023
1 parent adac8ae commit f8dcf86
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cli/src/wallet_cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1203,11 +1203,17 @@ async fn print_outputs(mut outputs: Vec<OutputData>, 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" },
);
}
Expand Down

0 comments on commit f8dcf86

Please sign in to comment.