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, }, };