From fd00eb5d073b12e3c8a6236d1629fe9ccc80f2e3 Mon Sep 17 00:00:00 2001 From: ctrlc03 <93448202+ctrlc03@users.noreply.github.com> Date: Sun, 14 Jan 2024 16:06:00 +0000 Subject: [PATCH] chore(contracts): add gas reporter to hardhat config Ensure we can reliably understand how much gas is consumed by each function call. --- contracts/hardhat.config.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contracts/hardhat.config.ts b/contracts/hardhat.config.ts index 31a29ca13e..4dba4dd212 100644 --- a/contracts/hardhat.config.ts +++ b/contracts/hardhat.config.ts @@ -44,6 +44,10 @@ const config: HardhatUserConfig = { pages: "files", exclude: ["./trees/zeros"], }, + gasReporter: { + currency: "USD", + enabled: true, + }, }; export default config;