minor fixes

This commit is contained in:
Christopher Jeffrey 2016-02-03 21:35:07 -08:00
parent c23fdeba50
commit 97bcdd79c2
2 changed files with 5 additions and 0 deletions

View File

@ -22,6 +22,9 @@ function Address(options) {
if (!(this instanceof Address))
return new Address(options);
if (options instanceof Address)
return options;
EventEmitter.call(this);
if (!options)

View File

@ -242,6 +242,8 @@ Wallet.prototype._initAddresses = function() {
assert(!this._initialized);
this._initialized = true;
delete this.current;
options.addresses.forEach(function(address) {
address = this.addAddress(address);
if (!this.hd) {