CLI: Allow account option for generating addresses

This commit is contained in:
Steven Bower 2017-04-25 16:59:26 -07:00
parent 6acef06cbc
commit 6ad9b2cdeb
No known key found for this signature in database
GPG Key ID: 53B6FEF7AAF4ACDF

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