Skip to content

feat: gas report/snapshots of entire transaction incl. gas cost of calldata #6238

@hensha256

Description

@hensha256

Component

Forge

Describe the feature you would like

To test functions, they are called as a sub-call of a larger test transaction. This means that gas information does not include the gas costs of the calldata needed to actually call the function in question as the entrypoint of a transaction.

While on mainnet calldata is pretty cheap and so this isnt a huge issue, on L2s calldata is a huge proportion of the total gas of a function. It would be great if there was a way to get estimated gas costs for a function including the calldata costs on various chains.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions