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

pull/5370/head
yann300 7 years ago
parent 9a14e0db9c
commit 3f28d95f34
  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