encode using ethers

pull/7/head
yann300 7 years ago
parent 0b48cab2c2
commit 22ce7f50b4
  1. 4
      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', '') }
}
},

Loading…
Cancel
Save