Unverified Commit 5049a5c1 authored by yann300's avatar yann300 Committed by GitHub

Merge pull request #780 from ethereum/fixOldEncoder

Fix Encoding
parents 0b48cab2 22ce7f50
...@@ -25,9 +25,9 @@ module.exports = { ...@@ -25,9 +25,9 @@ module.exports = {
return { error: 'cannot encode arguments' } return { error: 'cannot encode arguments' }
} }
if (contractbyteCode) { if (contractbyteCode) {
return { data: contractbyteCode + encodedHex } return { data: '0x' + contractbyteCode + encodedHex.replace('0x', '') }
} else { } else {
return { data: Buffer.concat([helper.encodeFunctionId(funABI), encoded]).toString('hex') } return { data: helper.encodeFunctionId(funABI) + encodedHex.replace('0x', '') }
} }
}, },
......
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