Skip to content

Commit a593288

Browse files
authored
fix: simplify wallet creation output (#1288)
1 parent 8fc6096 commit a593288

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

Diff for: lib/cli/commands/create.ts

+11-2
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,22 @@ const formatOutput = (response: CreateNodeResponse.AsObject) => {
5454
}
5555
console.log('-----------------------END XUD SEED----------------------\n');
5656

57+
let walletInitializedMessage = 'The following wallets were initialized: ';
58+
5759
if (response.initializedLndsList.length) {
58-
console.log(`The following lnd wallets were initialized: ${response.initializedLndsList.join(', ')}`);
60+
walletInitializedMessage += response.initializedLndsList.join(', ');
5961
}
62+
6063
if (response.initializedRaiden) {
61-
console.log('The keystore for raiden was initialized.');
64+
if (!walletInitializedMessage.endsWith(' ')) {
65+
walletInitializedMessage += ', ';
66+
}
67+
68+
walletInitializedMessage += 'ERC20(ETH)';
6269
}
6370

71+
console.log(walletInitializedMessage);
72+
6473
console.log(`
6574
Please write down your 24 word mnemonic. It will allow you to recover your xud
6675
node key and on-chain funds for the initialized wallets listed above should you

0 commit comments

Comments
 (0)