From 041b8fda8b93886d07135f6dcf873556e8426797 Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 29 Jan 2018 11:28:07 +0100 Subject: [PATCH] Update txFormat.js --- src/app/execution/txFormat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/execution/txFormat.js b/src/app/execution/txFormat.js index 7c93d80c05..5e2b53ba30 100644 --- a/src/app/execution/txFormat.js +++ b/src/app/execution/txFormat.js @@ -50,7 +50,7 @@ module.exports = { var data = '' var dataHex = '' - if (params.startsWith('"0x')) { + if (params.indexOf('"0x') === 0) { dataHex = params.match(/"(.*?)"/)[1].replace('0x', '') data = Buffer.from(dataHex, 'hex') } else {