Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

Commit

Permalink
Merge pull request #15 from matiu/feat/fromObj-check
Browse files Browse the repository at this point in the history
add check in fromObj
  • Loading branch information
matiu committed Mar 5, 2015
2 parents b27550d + b0e65dd commit f64f979
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/credentials.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ Credentials.fromObj = function(obj) {
x[k] = obj[k];
});

$.checkState(x.xPrivKey || x.xPubKey, "invalid input");

return x;
};

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "bitcore-wallet-client",
"description": "Client for bitcore-wallet-service",
"author": "BitPay Inc",
"version": "0.0.1",
"version": "0.0.2",
"keywords": [
"bitcoin",
"copay",
Expand Down

0 comments on commit f64f979

Please sign in to comment.