-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Labels
discussionQuestions, feedback and general information.Questions, feedback and general information.
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
// Expose the first (and hopefully unique named function) |
Line 431 in 4425536
errors.warn('WARNING: Multiple definitions for ' + name); |
Notes:
- I'm receving "WARNING: Multiple definitions" as well.
- With
web3js
I can call all of interfaces.
Thanks!
d14na, krzkaczor, kumikoda, ylv-io, PaulRBerg and 5 more
Metadata
Metadata
Assignees
Labels
discussionQuestions, feedback and general information.Questions, feedback and general information.