fix tests
This commit is contained in:
parent
b8e20c1ee7
commit
56f4c32646
1 changed files with 4 additions and 0 deletions
|
|
@ -157,6 +157,10 @@ PublicKeyRing.prototype.addCopayer = function(newEpk, nickname) {
|
||||||
throw new Error('PKR already has that key');
|
throw new Error('PKR already has that key');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (!newEpk) {
|
||||||
|
newEpk = this._newExtendedPublicKey();
|
||||||
|
}
|
||||||
|
|
||||||
var i = this.copayersHK.length;
|
var i = this.copayersHK.length;
|
||||||
var bip = new HK(newEpk);
|
var bip = new HK(newEpk);
|
||||||
this.copayersHK.push(bip);
|
this.copayersHK.push(bip);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue