Unverified Commit a555335e authored by yann300's avatar yann300 Committed by GitHub

Merge pull request #864 from ethereum/fixGetFunction

Fix resolving Function: take in account types
parents 3f0c31ec ae36733c
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment