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");
77module . exports = {
88 istanbulReporter : [ "lcov" ] ,
99 configureYulOptimizer : true ,
10+ irMinimum : true ,
1011 onCompileComplete : async function ( _config ) {
1112 await run ( "typechain" ) ;
1213 } ,
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ const config: HardhatUserConfig = {
2828 {
2929 version : "0.8.30" ,
3030 settings : {
31- viaIR : true ,
31+ viaIR : process . env . VIA_IR !== "false" , // Defaults to true
3232 optimizer : {
3333 enabled : true ,
3434 runs : 10000 ,
Original file line number Diff line number Diff line change 2121# Generate the Hardhat coverage report
2222yarn clean
2323echo " Building contracts with Hardhat..."
24+ export VIA_IR=false
2425yarn build
2526echo " Running Hardhat coverage..."
2627yarn 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