fix tests

This commit is contained in:
Manuel Araoz 2014-05-29 14:02:52 -03:00
parent b8e20c1ee7
commit 56f4c32646
1 changed files with 4 additions and 0 deletions

View File

@ -157,6 +157,10 @@ PublicKeyRing.prototype.addCopayer = function(newEpk, nickname) {
throw new Error('PKR already has that key');
});
if (!newEpk) {
newEpk = this._newExtendedPublicKey();
}
var i = this.copayersHK.length;
var bip = new HK(newEpk);
this.copayersHK.push(bip);