From 6484e0121ccf73c2c106ed4fe54a4acd32f5b122 Mon Sep 17 00:00:00 2001 From: fryorcraken Date: Tue, 6 Jan 2026 14:11:57 +1100 Subject: [PATCH] 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 --- wallet/src/cli/account.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wallet/src/cli/account.rs b/wallet/src/cli/account.rs index 58e19847..47a8c56e 100644 --- a/wallet/src/cli/account.rs +++ b/wallet/src/cli/account.rs @@ -288,7 +288,7 @@ impl WalletSubcommand for AccountSubcommand { .iter() .map(|(id, chain_index)| format!("{chain_index} Private/{id}")), ) - .format(",\n"); + .format("\n"); println!("{accounts}"); return Ok(SubcommandReturnValue::Empty);