Skip to content

Add anvil --dump-event #5906

Open
Open
@samlaf

Description

@samlaf

Component

Anvil

Describe the feature you would like

We setup an anvil localnode for integration tests, deploy contracts, register some txs, and then save this state. The problem is that the events have meaningful information that needs to be queried from offchain code. However, anvil only has a --dump-state feature, and when starting anvil with anvil --load-state saved_state.json, all receipts are lost, and the chain is restarted at block 0.

Would be useful to have a flag --dump-receipts that would also dump the receipts in a file, and could restart the chain with those events. Is that possible?

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