Closed
Description
Hi,
A contract that I'm testing has different interfaces for same function name:
// Order that appers on ABI
initialize(string _name, string _symbol);
initialize(string _name, string _symbol, address _registry);
initialize(string _sender);
initialize();
I'm getting the error: Error: incorrect number of arguments
when I'm trying call the second function.
Seems that when Contract
is reading the ABI and it's only considering the first interface and ignoring the others.
ethers.js/src.ts/utils/interface.ts
Line 328 in c2ce59f
Line 431 in 4425536
Notes:
- I'm receving "WARNING: Multiple definitions" as well.
- With
web3js
I can call all of interfaces.
Thanks!