Skip to content

solidity-gas-reporter shows ~400k gas usage for an empty function call #504

@transmissions11

Description

@transmissions11

Describe the bug
Calling an empty function takes up 400k gas units (according to solidity-gas-reporter) when interacting with l2geth

To Reproduce
See this reproduction branch: https://github.com/Rari-Capital/nova/tree/reproCaseForEmptyFunctionGasUsage

Can also view this run of CI which shows the crazy high gas usage in the "Run tests" section: https://github.com/Rari-Capital/nova/runs/2386486739

Screen Shot 2021-04-19 at 6 40 28 PM

Expected behavior
I don't think a simple empty call like this is meant to take up this much gas.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bugsS-unconfirmedStatus: Issue might be valid, but it’s not yet confirmed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions