From a593288f6c74b23f6493410b0b4fb7fa378c2eba Mon Sep 17 00:00:00 2001 From: michael1011 Date: Thu, 17 Oct 2019 18:50:12 +0200 Subject: [PATCH] fix: simplify wallet creation output (#1288) --- lib/cli/commands/create.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/lib/cli/commands/create.ts b/lib/cli/commands/create.ts index ddd6a0f5b..ad5a9c570 100644 --- a/lib/cli/commands/create.ts +++ b/lib/cli/commands/create.ts @@ -54,13 +54,22 @@ const formatOutput = (response: CreateNodeResponse.AsObject) => { } console.log('-----------------------END XUD SEED----------------------\n'); + let walletInitializedMessage = 'The following wallets were initialized: '; + if (response.initializedLndsList.length) { - console.log(`The following lnd wallets were initialized: ${response.initializedLndsList.join(', ')}`); + walletInitializedMessage += response.initializedLndsList.join(', '); } + if (response.initializedRaiden) { - console.log('The keystore for raiden was initialized.'); + if (!walletInitializedMessage.endsWith(' ')) { + walletInitializedMessage += ', '; + } + + walletInitializedMessage += 'ERC20(ETH)'; } + console.log(walletInitializedMessage); + console.log(` Please write down your 24 word mnemonic. It will allow you to recover your xud node key and on-chain funds for the initialized wallets listed above should you