Skip to content

Contract denylist for gas reports #2464

@PaulRBerg

Description

@PaulRBerg

Component

Forge

Describe the feature you would like

The gas_reports config option can be used to allowlist a specific set of contracts, or use it as a pass-through flag (*) to enable gas reports for all contracts.

It is not currently possible to denylist (i.e. blacklist) some contracts, though this would be quite useful in practice. It's often the case that you want to get an overview of all the contracts that you wrote, but exclude certain testing dependencies.

We could name this gas_reports_ignore or gas_reports_denylist.

Additional context

No response

Metadata

Metadata

Assignees

Labels

A-gas-snapshotsArea: gas snapshotting/reportingC-forgeCommand: forgeCmd-forge-testCommand: forge testD-easyDifficulty: easyT-featureType: featurefirst issueA good way to start contributing

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions