From c892d8f1e161b515eda767fbfb34fbe55d614ec7 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Fri, 2 Feb 2018 12:21:25 -0500 Subject: [PATCH] use js owns JSON.parse instead of using jquery --- src/app/execution/txFormat.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app/execution/txFormat.js b/src/app/execution/txFormat.js index d69446380a..f529167963 100644 --- a/src/app/execution/txFormat.js +++ b/src/app/execution/txFormat.js @@ -1,5 +1,4 @@ 'use strict' -var $ = require('jquery') var ethJSABI = require('ethereumjs-abi') var ethJSUtil = require('ethereumjs-util') var BN = ethJSUtil.BN @@ -55,7 +54,7 @@ module.exports = { data = Buffer.from(dataHex, 'hex') } else { try { - funArgs = $.parseJSON('[' + params + ']') + funArgs = JSON.parse('[' + params + ']') } catch (e) { callback('Error encoding arguments: ' + e) return