Commit ae36733c authored by yann300's avatar yann300

fix resolveFunction: take in account types

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