if has two same name function,cant find function #2345
Unanswered
gary123123
asked this question in
Q&A
Replies: 1 comment 5 replies
-
When an ABI is ambiguous you must specify the qualified method name. I.e. I am not sure how web3.js does it, but it may just pick the first one? Ethers makes it a policy to never guess, since that could result in lost funds or otherwise cause problems down the road. In v6 you will be able to wrap values in a Type object too, which will allow explicitly decisions to be made without having to specify the signature. Coming soon. :) |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
in the abi.json ,there has two mint funtion with different params ,i cant call mint function ,show undefined
but in the web3js,it done well
Beta Was this translation helpful? Give feedback.
All reactions