ethjs-contract icon indicating copy to clipboard operation
ethjs-contract copied to clipboard

abi file with solidity function overloading not supported

Open xmxanuel opened this issue 6 years ago • 0 comments

I recognize if an abi file for a contract contains two functions with the same name (function overloading) the first function can't be called.

eth-js throws an error because it is using only the second function definition in the abi file. (Therefore a types/values mismatch error is thrown if the first function with the same name is called.)

Reordering the functions in the abi file results in the opposite behaviour.

xmxanuel avatar Jul 16 '19 15:07 xmxanuel