foundry icon indicating copy to clipboard operation
foundry copied to clipboard

Contract denylist for gas reports

Open PaulRBerg opened this issue 3 years ago • 2 comments

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

PaulRBerg avatar Jul 25 '22 10:07 PaulRBerg

I think this would add the feature.

I can't figure out how to write tests for it. So any help testing it would be appreciated :)

danielrachi1 avatar Jul 30 '22 01:07 danielrachi1

Please open up a draft PR so we can address it there :)

onbjerg avatar Jul 30 '22 22:07 onbjerg

Closed in #2528

onbjerg avatar Aug 10 '22 23:08 onbjerg