Merge pull request #289 from logos-blockchain/fryorcraken/wallet-acc-ls-rm-commas

Remove trailing commas on `wallet account ls` output
This commit is contained in:
Daniil Polyakov 2026-01-20 03:35:31 +03:00 committed by GitHub
commit 173945a170
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -342,7 +342,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);