Skip to content

Commit d5cf1b6

Browse files
authored
disable gas reporter by default (#1778)
1 parent 4cd1765 commit d5cf1b6

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

contracts/hardhat.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,8 @@ export default {
4040
},
4141
mocha: {
4242
timeout: 30000
43+
},
44+
gasReporter: {
45+
enabled: (process.env.REPORT_GAS) ? true : false
4346
}
4447
}

tests/utils/command.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ func RunHardhatTestsCustomURI(ctx context.Context, chainURI string, execPath str
111111
"ChainURI", chainURI,
112112
)
113113

114-
cmd := exec.CommandContext(ctx, "npx", "hardhat", "test", testPath, "--network", "local")
114+
// first run clean cache
115+
cmd := exec.CommandContext(ctx, "npx", "hardhat", "test", testPath, "--network", "local", "--no-compile")
115116
cmd.Dir = execPath
116117

117118
log.Info("Sleeping to wait for test ping", "rpcURI", chainURI)

0 commit comments

Comments
 (0)