-
Notifications
You must be signed in to change notification settings - Fork 2.5k
feat(snapshots): track internal gas usage #3766
Copy link
Copy link
Closed
Labels
A-gas-snapshotsArea: gas snapshotting/reportingArea: gas snapshotting/reportingC-forgeCommand: forgeCommand: forgeCmd-forge-snapshotCommand: forge snapshotCommand: forge snapshotT-featureType: featureType: feature
Description
Component
Forge
Describe the feature you would like
I would like to have gas reports for free functions, e.g.
function min(uint x, uint y) pure returns (uint) {
return x < y ? x : y;
}Passing --gas-report to Forge doesn't generate a report. The only solution as of now is to wrap my free functions in an intermediary mock contract used specifically for testing.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-gas-snapshotsArea: gas snapshotting/reportingArea: gas snapshotting/reportingC-forgeCommand: forgeCommand: forgeCmd-forge-snapshotCommand: forge snapshotCommand: forge snapshotT-featureType: featureType: feature
Type
Projects
Status
Completed