Skip to content

Commit e4b5929

Browse files
committed
Add gas reporter
1 parent 85ff669 commit e4b5929

File tree

3 files changed

+528
-1215
lines changed

3 files changed

+528
-1215
lines changed

hardhat.config.ts

+6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { HardhatUserConfig } from 'hardhat/config';
22
import * as dotenv from 'dotenv';
33
import '@nomicfoundation/hardhat-toolbox';
44
import 'hardhat-contract-sizer';
5+
import "hardhat-gas-reporter";
56
import 'solidity-coverage';
67

78
dotenv.config();
@@ -17,6 +18,11 @@ const config: HardhatUserConfig = {
1718
},
1819
},
1920
},
21+
gasReporter: {
22+
currency: 'USD',
23+
enabled: !!(process.env.REPORT_GAS),
24+
gasPrice: 50,
25+
},
2026
contractSizer: {
2127
runOnCompile: true,
2228
},

0 commit comments

Comments
 (0)