diff --git a/hardhat.config.ts b/hardhat.config.ts index a56514d7..0159eb5f 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -203,7 +203,7 @@ const config: HardhatUserConfig = { contractSizer: { alphaSort: false, disambiguatePaths: false, - runOnCompile: true, + runOnCompile: false, strict: true, except: [ "@openzeppelin/", @@ -215,6 +215,8 @@ const config: HardhatUserConfig = { ], }, gasReporter: { + currency: "USD", + enabled: REPORT_GAS, excludeContracts: [ "@openzeppelin/", "interfaces/", @@ -223,8 +225,6 @@ const config: HardhatUserConfig = { "state-transfer", "tunnel", ], - currency: "USD", - enabled: REPORT_GAS, }, }; diff --git a/package.json b/package.json index 964620e8..9032e9ec 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "test:ci": "hardhat test --parallel", "cover": "rimraf coverage && hardhat coverage", "gas": "cross-env REPORT_GAS=1 npm run test", + "size": "hardhat size-contracts", "analyze": "slitherin . --slither", "analyze:ci": "slitherin --separated . --skip-clean --ignore-compile", "clean": "hardhat clean && rimraf coverage cache crytic-{corpus,export} mochaOutput.json testMatrix.json",