From e63d82a70926ac9381639478dc7ef290308bc12f Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 11 Dec 2017 22:27:11 +0100 Subject: [PATCH] fix input params --- src/app/execution/txFormat.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/execution/txFormat.js b/src/app/execution/txFormat.js index 296feefac4..eafe5b7e26 100644 --- a/src/app/execution/txFormat.js +++ b/src/app/execution/txFormat.js @@ -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 + ']')