Merge pull request #719 from ethereum/fixInputParam

Fix input param
pull/7/head
yann300 7 years ago committed by GitHub
commit b841624bc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      remix-lib/src/execution/txFormat.js

@ -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 {

Loading…
Cancel
Save