Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Show appropriate error when a contract has several functions with the same name #3695

Closed
Allarious opened this issue Feb 18, 2023 · 1 comment

Comments

@Allarious
Copy link

Describe the feature

Whenever a contract has several functions with the same name and different signatures, the functions are only accessible if called by their signature. In such cases, when a function is called as a function of the contract object, it throws the error of TypeError: <function name> is not a function. Instead, it could be helpful to show a more appropriate Error message where it points the user towards using the signature.

Search terms

No response

@fvictorio
Copy link
Member

Hi @Allarious, I think you are talking about an ethers thing, which is not part of Hardhat. That is a known issue (see ethers-io/ethers.js#407, for example), and I think v6 will handle it better. But there isn't much we can do on our side.

@fvictorio fvictorio closed this as not planned Won't fix, can't repro, duplicate, stale Feb 21, 2023
@github-project-automation github-project-automation bot moved this to Done in Hardhat Feb 21, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Archived in project
Development

No branches or pull requests

2 participants