dethcrypto / dethcrypto/TypeChain
When using with `@nomiclabs/hardhat-vyper`, typechain task is run before vyper files are compiled.
Open
bug
- Dominant language
- TypeScript
- Stars
- 2.8k
- Forks
- 376
- PR merge metrics
- No merged PRs in 30d
Description
I was able to replicate this with typechain 8.0.0, @nomiclabs/hardhat-vyper 3.0.0,
https://github.com/penandlim/TestVyperPlugins
Compiling the repo will result in correct artifacts from both solidity and vyper files but only has types from solidity.
```bash
npm ci
npx hardhat compile
```
The workaround I found is to run typechain after the compile task.
```bash
npm ci
npx hardhat compile --no-typechain && npx hardhat typechain
```
This correctly adds any types generated from vyper into the typechain output folder.
Contributor guide
Assessment
This issue has not been assessed yet.