Commit e63d82a7 authored by yann300's avatar yann300

fix input params

parent f1048463
......@@ -46,6 +46,8 @@ module.exports = {
* @param {Function} callbackStep - callbackStep
*/
buildData: function (contractName, contract, contracts, isConstructor, funAbi, params, udapp, callback, callbackStep) {
params = params.replace(/[^"](0[xX][0-9a-fA-F]+)/g, '"$1"')
params = params.replace((/^[^0x]([0-9]+)/g, '"$1"'))
var funArgs = ''
try {
funArgs = $.parseJSON('[' + params + ']')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment