Skip to content

Commit

Permalink
refactor to use a single env var
Browse files Browse the repository at this point in the history
  • Loading branch information
milapsheth committed Oct 12, 2023
1 parent a9c5d5a commit ae0b064
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
};

0 comments on commit ae0b064

Please sign in to comment.