minor fixes
This commit is contained in:
parent
c23fdeba50
commit
97bcdd79c2
@ -22,6 +22,9 @@ function Address(options) {
|
|||||||
if (!(this instanceof Address))
|
if (!(this instanceof Address))
|
||||||
return new Address(options);
|
return new Address(options);
|
||||||
|
|
||||||
|
if (options instanceof Address)
|
||||||
|
return options;
|
||||||
|
|
||||||
EventEmitter.call(this);
|
EventEmitter.call(this);
|
||||||
|
|
||||||
if (!options)
|
if (!options)
|
||||||
|
|||||||
@ -242,6 +242,8 @@ Wallet.prototype._initAddresses = function() {
|
|||||||
assert(!this._initialized);
|
assert(!this._initialized);
|
||||||
this._initialized = true;
|
this._initialized = true;
|
||||||
|
|
||||||
|
delete this.current;
|
||||||
|
|
||||||
options.addresses.forEach(function(address) {
|
options.addresses.forEach(function(address) {
|
||||||
address = this.addAddress(address);
|
address = this.addAddress(address);
|
||||||
if (!this.hd) {
|
if (!this.hd) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user