try encoding params in any case so we throw beforehand if something went wrong

pull/7/head
yann300 6 years ago
parent 88882b7634
commit 20e1a6051e
  1. 2
      remix-lib/src/execution/txFormat.js

@ -186,7 +186,6 @@ module.exports = {
callback('Error encoding arguments: ' + e)
return
}
if (!isConstructor || funArgs.length > 0) {
try {
data = helper.encodeParams(funAbi, funArgs)
dataHex = data.toString('hex')
@ -194,7 +193,6 @@ module.exports = {
callback('Error encoding arguments: ' + e)
return
}
}
if (data.slice(0, 9) === 'undefined') {
dataHex = data.slice(9)
}

Loading…
Cancel
Save