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

[Typechain] modify the plugin to generate types for a subset of contracts #6311

Open
ChristopherDedominici opened this issue Feb 17, 2025 · 0 comments
Assignees
Labels
v-next A Hardhat v3 development task

Comments

@ChristopherDedominici
Copy link
Contributor

Describe the feature

In Hardhat v2, all contracts were compiled together each time, causing TypeChain to regenerate types for all contracts on every run.

In Hardhat v3, it is possible to compile only a subset of contracts. However, when doing so, the types folder is overwritten, retaining only the types from the compiled subset. As a result, types from previously compiled contracts are lost.

Can we prevent this? We should investigate how to generate types for a subset of contracts without deleting the existing types

Search terms

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v-next A Hardhat v3 development task
Projects
Status: To-do
Development

No branches or pull requests

3 participants