Skip to content

Commit

Permalink
BUGFIX: Typechain not generating anything
Browse files Browse the repository at this point in the history
  • Loading branch information
MilGard91 authored and roxdanila committed Nov 22, 2022
1 parent 882cc42 commit 67f273b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hardhat.config.js/tasks.js
@@ -1,4 +1,5 @@
const { task } = require('hardhat/config');
const { TASK_TYPECHAIN } = require('@typechain/hardhat/dist/constants');

task('test', async (args, hre, runSuper) => {
const testFiles = args.testFiles.length ? args.testFiles : ['test/index.js'];
Expand All @@ -8,3 +9,8 @@ task('test', async (args, hre, runSuper) => {
task('test:setup-test-environment', async (_, hre) => {
hre.accounts = await hre.web3.eth.getAccounts();
});

task(TASK_TYPECHAIN, async (args, hre, runSuper) => {
hre.config.typechain.dontOverrideCompile = false;
await runSuper();
});

0 comments on commit 67f273b

Please sign in to comment.