From ae0b0641330734147ff6008a7f6b6dcac1d5b636 Mon Sep 17 00:00:00 2001 From: Milap Sheth Date: Thu, 12 Oct 2023 05:46:25 -0400 Subject: [PATCH] refactor to use a single env var --- .github/workflows/test.yaml | 2 +- hardhat.config.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index cef7334b..f2d8d0a8 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -24,7 +24,7 @@ jobs: run: npm ci - name: Set environment variable - run: export FAIL_COMPILE_IF_SIZE_EXCEEDS=true CONTRACT_SIZER_ENABLED=true + run: export CHECK_CONTRACT_SIZE=true - name: Test run: npm run test diff --git a/hardhat.config.js b/hardhat.config.js index 3c420bb8..80120b46 100644 --- a/hardhat.config.js +++ b/hardhat.config.js @@ -47,7 +47,7 @@ module.exports = { enabled: process.env.REPORT_GAS !== undefined, }, contractSizer: { - runOnCompile: process.env.CONTRACT_SIZER_ENABLED, - strict: process.env.FAIL_COMPILE_IF_SIZE_EXCEEDS, + runOnCompile: process.env.CHECK_CONTRACT_SIZE, + strict: process.env.CHECK_CONTRACT_SIZE, }, };