fix resolveFunction: take in account types

pull/5370/head
yann300 7 years ago
parent f5a11a4666
commit 934ed2693c
  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