We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df11252 commit 2e97508Copy full SHA for 2e97508
hardhat.config.js
@@ -9,8 +9,18 @@ if (process.env.REPORT_GAS) {
9
* @type import('hardhat/config').HardhatUserConfig
10
*/
11
module.exports = {
12
- solidity: "0.8.11",
+ solidity: {
13
+ version: "0.8.11",
14
+ settings: {
15
+ optimizer: {
16
+ enabled: true,
17
+ runs: 800,
18
+ },
19
20
21
gasReporter: {
- currency: 'USD',
- }
22
+ currency: "USD",
23
+ gasPrice: 100,
24
+ showTimeSpent: true,
25
26
};
package.json
@@ -10,6 +10,7 @@
"scripts": {
"node": "hardhat node",
"test": "hardhat test",
+ "testGas": "REPORT_GAS=true npx hardhat test",
"lint": "npm run lint:js && npm run lint:sol",
"lint:js": "eslint --ignore-path .gitignore . --fix",
"lint:sol": "prettier --write \"contracts/**/*.sol\""
0 commit comments