Commit 4731b499 authored by yann300's avatar yann300

prefix raw data by "raw:"

parent 2394d46b
...@@ -49,8 +49,9 @@ module.exports = { ...@@ -49,8 +49,9 @@ module.exports = {
var data = '' var data = ''
var dataHex = '' var dataHex = ''
if (params.indexOf('0x') === 0) { if (params.indexOf('raw:0x') === 0) {
dataHex = params.replace('0x', '') // 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') data = Buffer.from(dataHex, 'hex')
} else { } else {
try { try {
......
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