use js owns JSON.parse instead of using jquery

pull/1/head
Iuri Matias 7 years ago
parent 1cb05f7d34
commit 64f39d9529
  1. 3
      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

Loading…
Cancel
Save