add sinon for fromObj

This commit is contained in:
Matias Alejo Garcia 2014-09-29 12:11:10 -03:00
commit 1dd906afcd
4 changed files with 356 additions and 43 deletions

View file

@ -209,7 +209,7 @@ Wallet.obtainNetworkName = function(obj) {
return obj.networkName ||
(obj.opts ? obj.opts.networkName : null) ||
(obj.publicKeyRing ? obj.publicKeyRing.networkName : null) ||
obj.privateKey.networkName;
(obj.publicKeyRing ? obj.privateKey.networkName : null);
};