Add anvil --dump-event
#5906
Labels
A-reth-anvil
Area: reth-anvil
C-anvil
Command: anvil
T-feature
Type: feature
T-post-V1
Area: to tackle after V1
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
The text was updated successfully, but these errors were encountered: