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

Issues with identical contract names #833

Open
sebastiantf opened this issue May 12, 2023 · 0 comments
Open

Issues with identical contract names #833

sebastiantf opened this issue May 12, 2023 · 0 comments

Comments

@sebastiantf
Copy link

I am seeing weird behavior when having contracts with identical names, but placed in different separate subfolders

In one project, I noticed that the barrel export index.ts only included one of the contracts and not the other. I wasn't notified of this and this was misleading on places where i expected the other contract.

"@typechain/ethers-v5": "^10.2.0",
"@typechain/hardhat": "^6.1.5",
"ethers": "^5.7.2",
"hardhat": "^2.14.0",
"typechain": "^8.1.1",
"typescript": "^5.0.4"

On a fresh hardhat project, typechain was failing, new extra folders with the names of the subfolders were created in the root folder, with Contract__factory.ts in each. This can be found here: sebastiantf/typechain-identical-contract-name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant