Skip to content

Commit b8628bb

Browse files
committed
fix: coverage script breaking after enabling viaIR
1 parent a130a6a commit b8628bb

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

contracts/.solcover.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const shell = require("shelljs");
77
module.exports = {
88
istanbulReporter: ["lcov"],
99
configureYulOptimizer: true,
10+
irMinimum: true,
1011
onCompileComplete: async function (_config) {
1112
await run("typechain");
1213
},

contracts/hardhat.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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,

contracts/scripts/coverage.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ fi
2121
# Generate the Hardhat coverage report
2222
yarn clean
2323
echo "Building contracts with Hardhat..."
24+
export VIA_IR=false
2425
yarn build
2526
echo "Running Hardhat coverage..."
2627
yarn hardhat coverage --solcoverjs ./.solcover.js --temp artifacts --show-stack-traces --testfiles "test/**/*.ts"

0 commit comments

Comments
 (0)