use js owns JSON.parse instead of using jquery

pull/3094/head
Iuri Matias 7 years ago
parent b083ef979c
commit c892d8f1e1
  1. 3
      src/app/execution/txFormat.js

@ -1,5 +1,4 @@
'use strict' 'use strict'
var $ = require('jquery')
var ethJSABI = require('ethereumjs-abi') var ethJSABI = require('ethereumjs-abi')
var ethJSUtil = require('ethereumjs-util') var ethJSUtil = require('ethereumjs-util')
var BN = ethJSUtil.BN var BN = ethJSUtil.BN
@ -55,7 +54,7 @@ module.exports = {
data = Buffer.from(dataHex, 'hex') data = Buffer.from(dataHex, 'hex')
} else { } else {
try { try {
funArgs = $.parseJSON('[' + params + ']') funArgs = JSON.parse('[' + params + ']')
} catch (e) { } catch (e) {
callback('Error encoding arguments: ' + e) callback('Error encoding arguments: ' + e)
return return

Loading…
Cancel
Save