Merge pull request #864 from ethereum/fixGetFunction

Fix resolving Function: take in account types
pull/7/head
yann300 7 years ago committed by GitHub
commit a555335ee9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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