From 4731b499b8d2239fb0ade5ee81de82192bfbb83a Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 13 Mar 2018 18:01:05 +0100 Subject: [PATCH] prefix raw data by "raw:" --- remix-lib/src/execution/txFormat.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/remix-lib/src/execution/txFormat.js b/remix-lib/src/execution/txFormat.js index 54426b175c..7d6ee341c2 100644 --- a/remix-lib/src/execution/txFormat.js +++ b/remix-lib/src/execution/txFormat.js @@ -49,8 +49,9 @@ module.exports = { var data = '' var dataHex = '' - if (params.indexOf('0x') === 0) { - dataHex = params.replace('0x', '') + if (params.indexOf('raw:0x') === 0) { + // in that case we consider that the input is already encoded and *does not* contain the method signature + dataHex = params.replace('raw:0x', '') data = Buffer.from(dataHex, 'hex') } else { try {