Skip to content

Switch gas report parsing from RST to native JSON output #16373

@r0qs

Description

@r0qs

Currently, our external tests use hardhat-gas-reporter with RST table output, which we then parse with parse_eth_gas_report.py to convert to JSON. This approach is fragile:

  1. RST parsing requires complex regex patterns and is an unnecessary intermediate step done when hardhat-gas-reporter didn't support JSON output
  2. Recent updates to hardhat-gas-reporter v2 already required adjustments to handle number formatting changes

Since hardhat-gas-reporter v2, native JSON output is supported via the outputJSON option. We should switch to it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    easy difficultylow effortThere is not much implementation work to be done. The task is very easy or tiny.low impactChanges are not very noticeable or potential benefits are limited.testing 🔨

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions