From 6ad9b2cdebfefa9ea707280d5bc316619b4db688 Mon Sep 17 00:00:00 2001 From: Steven Bower Date: Tue, 25 Apr 2017 16:59:26 -0700 Subject: [PATCH] CLI: Allow account option for generating addresses --- bin/cli | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/cli b/bin/cli index 13a608ff..fef3ad26 100755 --- a/bin/cli +++ b/bin/cli @@ -121,19 +121,19 @@ CLI.prototype.createAccount = co(function* createAccount() { }); CLI.prototype.createAddress = co(function* createAddress() { - var account = this.config.str(0); + var account = this.config.str([0, 'account']); var addr = yield this.wallet.createAddress(account); this.log(addr); }); CLI.prototype.createChange = co(function* createChange() { - var account = this.config.str(0); + var account = this.config.str([0, 'account']); var addr = yield this.wallet.createChange(account); this.log(addr); }); CLI.prototype.createNested = co(function* createNested() { - var account = this.config.str(0); + var account = this.config.str([0, 'account']); var addr = yield this.wallet.createNested(account); this.log(addr); });