Merge pull request #735 from braydonf/bug/js-util-naming
Fixed issue with js util naming
This commit is contained in:
commit
feb3aa3150
|
@ -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');
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue