From 56f4c32646fb0eec29238d44d0e38df702c39c6d Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Thu, 29 May 2014 14:02:52 -0300 Subject: [PATCH] fix tests --- js/models/core/PublicKeyRing.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/models/core/PublicKeyRing.js b/js/models/core/PublicKeyRing.js index 14ae83add..76edc40e1 100644 --- a/js/models/core/PublicKeyRing.js +++ b/js/models/core/PublicKeyRing.js @@ -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);