Skip to content

Commit

Permalink
Fix gas comments (#392)
Browse files Browse the repository at this point in the history
  • Loading branch information
arr00 authored Apr 11, 2024
1 parent c6da599 commit d96338e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions utils/gas-benchmarks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ async function main() {
let looking = false;
for (let i = 0; i < outputLines.length; i++) {
const outputLine = outputLines[i].trim();
// Only start looking until we see a line that starts with "Running"
if (outputLine.startsWith("Running")) {
// Only start looking once we see a line that starts with "Running"
if (outputLine.startsWith("Ran")) {
looking = true;
continue;
}
Expand All @@ -35,7 +35,8 @@ async function main() {
outputLine.startsWith("Test result:") ||
outputLine.startsWith("Ran 1 test") ||
outputLine.endsWith("test/GasBenchmarks.t.sol:GasBenchmarks") ||
outputLine.startsWith("No files changed")
outputLine.startsWith("No files changed") ||
outputLine.startsWith("Suite result")
) {
continue;
}
Expand Down

0 comments on commit d96338e

Please sign in to comment.