Fixed issue with js util naming

This commit is contained in:
Braydon Fuller 2014-12-12 17:54:48 -05:00
parent 04fba31293
commit 0e7f5e89f2
2 changed files with 2 additions and 2 deletions

View File

@ -189,7 +189,7 @@ PrivateKey.fromWIF = function(str) {
* @returns {PrivateKey} A new valid instance of PrivateKey
*/
PrivateKey.fromJSON = function(json) {
if (JSUtil.isValidJson(json)) {
if (JSUtil.isValidJSON(json)) {
json = JSON.parse(json);
}
var bn = BN(json.bn, 'hex');

View File

@ -162,7 +162,7 @@ PublicKey._transformX = function(odd, x){
* @returns {PublicKey} A new valid instance of PublicKey
*/
PublicKey.fromJSON = function(json) {
if (JSUtil.isValidJson(json)) {
if (JSUtil.isValidJSON(json)) {
json = JSON.parse(json);
}
var x = BN(json.x, 'hex');