Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add anvil --dump-event #5906

Open
Tracked by #8269
samlaf opened this issue Sep 25, 2023 · 0 comments
Open
Tracked by #8269

Add anvil --dump-event #5906

samlaf opened this issue Sep 25, 2023 · 0 comments
Labels
A-reth-anvil Area: reth-anvil C-anvil Command: anvil T-feature Type: feature T-post-V1 Area: to tackle after V1

Comments

@samlaf
Copy link
Contributor

samlaf commented Sep 25, 2023

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

@samlaf samlaf added the T-feature Type: feature label Sep 25, 2023
@gakonst gakonst added this to Foundry Sep 25, 2023
@github-project-automation github-project-automation bot moved this to Todo in Foundry Sep 25, 2023
@zerosnacks zerosnacks changed the title anvil --dump-event Add anvil --dump-event Jun 27, 2024
@zerosnacks zerosnacks added the C-anvil Command: anvil label Jun 27, 2024
@zerosnacks zerosnacks added this to the v1.0.0 milestone Jul 26, 2024
@grandizzy grandizzy removed this from the v1.0.0 milestone Oct 8, 2024
@grandizzy grandizzy added T-post-V1 Area: to tackle after V1 A-reth-anvil Area: reth-anvil labels Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-reth-anvil Area: reth-anvil C-anvil Command: anvil T-feature Type: feature T-post-V1 Area: to tackle after V1
Projects
Archived in project
Development

No branches or pull requests

3 participants