From f79f85329ee6c7600ec56eabd1fe181cabf84146 Mon Sep 17 00:00:00 2001 From: Luis Cuende Date: Thu, 17 May 2018 06:21:07 +0200 Subject: [PATCH] Fixes #80 --- packages/aragon-cli/src/commands/devchain.js | 8 +++++--- packages/aragon-cli/src/commands/run.js | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/aragon-cli/src/commands/devchain.js b/packages/aragon-cli/src/commands/devchain.js index f316c86dd..4e6c5e563 100644 --- a/packages/aragon-cli/src/commands/devchain.js +++ b/packages/aragon-cli/src/commands/devchain.js @@ -69,10 +69,12 @@ exports.task = async function ({ port = 8545 }) { exports.handler = async ({ reporter, port }) => { const ctx = await exports.task({ port }) - reporter.info(`Here are some accounts you can use. - The first one will use for all the actions the CLI performs. + reporter.info(`Here are some Ethereum accounts you can use. + The first one will be used for all the actions the CLI performs. + You can use your favorite Ethereum provider or wallet to import their private keys. + You can also point it to your chain: http://localhost:${port}. ${Object.keys(ctx.privateKeys).map((address) => - chalk.bold(`Address: ${address}\n Key: `) + ctx.privateKeys[address].secretKey.toString('hex')).join('\n ')} + chalk.bold(`Address: ${address}\n Private key: `) + ctx.privateKeys[address].secretKey.toString('hex')).join('\n ')} `) } \ No newline at end of file diff --git a/packages/aragon-cli/src/commands/run.js b/packages/aragon-cli/src/commands/run.js index 2664a74e0..9836ac5bf 100644 --- a/packages/aragon-cli/src/commands/run.js +++ b/packages/aragon-cli/src/commands/run.js @@ -371,7 +371,7 @@ exports.handler = function ({ ${(ctx.privateKeys) ? Object.keys(ctx.privateKeys).map((address) => - chalk.bold(`Address: ${address}\n Key: `) + ctx.privateKeys[address].secretKey.toString('hex')).join('\n ') : + chalk.bold(`Address: ${address}\n Private key: `) + ctx.privateKeys[address].secretKey.toString('hex')).join('\n ') : chalk.bold(ctx.accounts.join(`\n `)) }