minor fixes
This commit is contained in:
parent
c23fdeba50
commit
97bcdd79c2
@ -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)
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user