Skip to content

Commit

Permalink
Fixes #80
Browse files Browse the repository at this point in the history
  • Loading branch information
luisivan authored and 0xGabi committed Feb 25, 2019
1 parent a6ceebc commit f79f853
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions packages/aragon-cli/src/commands/devchain.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ')}
`)
}
2 changes: 1 addition & 1 deletion packages/aragon-cli/src/commands/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 `))
}
Expand Down

0 comments on commit f79f853

Please sign in to comment.