Skip to content

Commit

Permalink
fix: simplify wallet creation output (#1288)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael1011 authored Oct 17, 2019
1 parent 8fc6096 commit a593288
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions lib/cli/commands/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a593288

Please sign in to comment.