diff --git a/remix-lib/src/execution/txFormat.js b/remix-lib/src/execution/txFormat.js index fd3a3904de..83883012a5 100644 --- a/remix-lib/src/execution/txFormat.js +++ b/remix-lib/src/execution/txFormat.js @@ -25,9 +25,9 @@ module.exports = { return { error: 'cannot encode arguments' } } if (contractbyteCode) { - return { data: contractbyteCode + encodedHex } + return { data: '0x' + contractbyteCode + encodedHex.replace('0x', '') } } else { - return { data: Buffer.concat([helper.encodeFunctionId(funABI), encoded]).toString('hex') } + return { data: helper.encodeFunctionId(funABI) + encodedHex.replace('0x', '') } } },