Merge pull request #204 from BluSyn/cli-fix

CLI: Allow account option for generating addresses
This commit is contained in:
Christopher Jeffrey (JJ) 2017-05-12 13:34:24 -07:00 committed by GitHub
commit d6157b525a

View File

@ -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);
});