fix resolveFunction: take in account types

pull/7/head
yann300 7 years ago
parent de30c58ce6
commit ae36733ce1
  1. 6
      remix-lib/src/execution/txListener.js

@ -356,10 +356,10 @@ function getConstructorInterface (abi) {
}
function getFunction (abi, fnName) {
fnName = fnName.split('(')[0]
for (var i = 0; i < abi.length; i++) {
if (abi[i].name === fnName) {
return abi[i]
var fn = abi[i]
if (fnName === fn.name + '(' + fn.inputs.map((value) => { return value.type }).join(',') + ')') {
return fn
}
}
return null

Loading…
Cancel
Save