File tree Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ const shell = require("shelljs");
7
7
module . exports = {
8
8
istanbulReporter : [ "lcov" ] ,
9
9
configureYulOptimizer : true ,
10
+ irMinimum : true ,
10
11
onCompileComplete : async function ( _config ) {
11
12
await run ( "typechain" ) ;
12
13
} ,
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ const config: HardhatUserConfig = {
28
28
{
29
29
version : "0.8.30" ,
30
30
settings : {
31
- viaIR : true ,
31
+ viaIR : process . env . VIA_IR !== "false" , // Defaults to true
32
32
optimizer : {
33
33
enabled : true ,
34
34
runs : 10000 ,
Original file line number Diff line number Diff line change 21
21
# Generate the Hardhat coverage report
22
22
yarn clean
23
23
echo " Building contracts with Hardhat..."
24
+ export VIA_IR=false
24
25
yarn build
25
26
echo " Running Hardhat coverage..."
26
27
yarn hardhat coverage --solcoverjs ./.solcover.js --temp artifacts --show-stack-traces --testfiles " test/**/*.ts"
You can’t perform that action at this time.
0 commit comments