|
|
@ -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 |
|
|
|