From 740be553829d40b9f8735c4bd74d328268ff033d 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 d10c8c5..de39b2e 100644 --- a/wallet/src/cli/account.rs +++ b/wallet/src/cli/account.rs @@ -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)