Skip to content

Commit 17f7ce3

Browse files
authored
Update hardhat.config.js
1 parent 6343abc commit 17f7ce3

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

hardhat.config.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ const argv = require('yargs/yargs')()
3939
type: 'boolean',
4040
default: false,
4141
},
42+
foundry: {
43+
alias: 'hasFoundry',
44+
type: 'boolean',
45+
default: hasFoundry(),
46+
},
4247
compiler: {
4348
alias: 'compileVersion',
4449
type: 'string',
@@ -53,12 +58,8 @@ const argv = require('yargs/yargs')()
5358
require('@nomiclabs/hardhat-truffle5');
5459
require('hardhat-ignore-warnings');
5560
require('hardhat-exposed');
56-
5761
require('solidity-docgen');
58-
59-
if (hasFoundry()) {
60-
require('@nomicfoundation/hardhat-foundry');
61-
}
62+
argv.foundry && require('@nomicfoundation/hardhat-foundry');
6263

6364
for (const f of fs.readdirSync(path.join(__dirname, 'hardhat'))) {
6465
require(path.join(__dirname, 'hardhat', f));

0 commit comments

Comments
 (0)