dethcrypto / dethcrypto/TypeChain
Issues with identical contract names
- Dominant language
- TypeScript
- Stars
- 2.8k
- Forks
- 376
- PR merge metrics
- No merged PRs in 30d
Description
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.
```json
"@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](https://github.com/sebastiantf/typechain-identical-contract-name)
Contributor guide
Assessment
This issue has not been assessed yet.