Skip to content

Commit

Permalink
feat: add hh configuration and add node option to the script
Browse files Browse the repository at this point in the history
  • Loading branch information
clauBv23 committed Nov 20, 2024
1 parent 762af58 commit c280e24
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion contracts/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ const config: HardhatUserConfig = {
// https://hardhat.org/hardhat-network/#solidity-optimizer-support
optimizer: {
enabled: true,
runs: 800,
runs: 2000,
},
},
},
Expand All @@ -158,6 +158,9 @@ const config: HardhatUserConfig = {
collapseNewlines: true,
exclude: ['test'],
},
mocha: {
timeout: 200_000, // 90 seconds // increase the timeout for subdomain validation tests
},
};

export default config;
2 changes: 1 addition & 1 deletion contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
},
"scripts": {
"build": "cross-env TS_NODE_TRANSPILE_ONLY=true hardhat compile",
"coverage": "hardhat coverage --solcoverjs ./.solcover.js --temp artifacts --testfiles \"test/**/*.ts\" && yarn typechain",
"coverage": "NODE_OPTIONS='--max-old-space-size=8192' hardhat coverage --solcoverjs ./.solcover.js --temp artifacts --testfiles \"test/**/*.ts\" && yarn typechain",
"deploy": "hardhat deploy",
"lint": "yarn lint:sol && yarn lint:ts",
"lint:sol": "cd .. && yarn run lint:contracts:sol",
Expand Down

0 comments on commit c280e24

Please sign in to comment.