ethjs / ethjs-contract

A simple contract object for the Ethereum RPC layer.
MIT License
20 stars 28 forks source link

abi file with solidity function overloading not supported #22

Open xmxanuel opened 5 years ago

xmxanuel commented 5 years ago

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.