Skip to content

Commit 464568e

Browse files
committed
fix: fix
1 parent 7e107cc commit 464568e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ else
1919
fi
2020

2121
# Generate the Hardhat coverage report
22-
sed -i '' 's/\(viaIR: \)true/\1false/' hardhat.config.ts
2322
yarn clean
2423
echo "Building contracts with Hardhat..."
24+
export VIA_IR=false
2525
yarn build
2626
echo "Running Hardhat coverage..."
2727
yarn hardhat coverage --solcoverjs ./.solcover.js --temp artifacts --show-stack-traces --testfiles "test/**/*.ts"

0 commit comments

Comments
 (0)