Remove trailing commas on wallet account ls output

The trailing commas is inconvenient:

1. For users trying to select an account id by double-clicking it in a terminal: the comma gets included in the selection
2. For dev parsing the `wallet account list` output: the commas needs to be handled
This commit is contained in:
fryorcraken 2026-01-06 14:11:57 +11:00
parent 1d09afd9e0
commit 740be55382
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4

View File

@ -278,7 +278,7 @@ impl WalletSubcommand for AccountSubcommand {
.iter()
.map(|(id, chain_index)| format!("{chain_index} Private/{id}")),
)
.format(",\n");
.format("\n");
println!("{accounts}");
Ok(SubcommandReturnValue::Empty)