We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e107cc commit 464568eCopy full SHA for 464568e
contracts/hardhat.config.ts
@@ -28,7 +28,7 @@ const config: HardhatUserConfig = {
28
{
29
version: "0.8.30",
30
settings: {
31
- viaIR: true,
+ viaIR: process.env.VIA_IR !== "false", // Defaults to true
32
optimizer: {
33
enabled: true,
34
runs: 10000,
contracts/scripts/coverage.sh
@@ -19,9 +19,9 @@ else
19
fi
20
21
# Generate the Hardhat coverage report
22
-sed -i '' 's/\(viaIR: \)true/\1false/' hardhat.config.ts
23
yarn clean
24
echo "Building contracts with Hardhat..."
+export VIA_IR=false
25
yarn build
26
echo "Running Hardhat coverage..."
27
yarn hardhat coverage --solcoverjs ./.solcover.js --temp artifacts --show-stack-traces --testfiles "test/**/*.ts"
0 commit comments