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

Fully offline mode for anvil fork #9721

Open
exp0nge opened this issue Jan 20, 2025 · 0 comments
Open

Fully offline mode for anvil fork #9721

exp0nge opened this issue Jan 20, 2025 · 0 comments
Labels
T-feature Type: feature T-to-investigate Type: to investigate

Comments

@exp0nge
Copy link

exp0nge commented Jan 20, 2025

Component

Anvil

Describe the feature you would like

It does not seem like it's currently possible to do a fully offline version of an anvil fork. Even with the following startup commands, it still tries to reach out to the RPC:

anvil --fork-url https://sepolia.base.org --optimism --fork-block-number 20702367 --fork-chain-id 84532 --host 0.0.0.0 --load-state ~/state.json --no-mining

(I ensured that both state.json and storage.json exist for that fork number).

when attempting to call eth_chainId

I get

Error: failed to get fork block

Caused by:
   0: error sending request for url (https://sepolia.base.org/)
   1: error sending request for url (https://sepolia.base.org/)
   2: operation timed out

(the env does not have access to the internet)

Additional context

No response

@exp0nge exp0nge added T-feature Type: feature T-needs-triage Type: this issue needs to be labelled labels Jan 20, 2025
@github-project-automation github-project-automation bot moved this to Todo in Foundry Jan 20, 2025
@grandizzy grandizzy added T-to-investigate Type: to investigate and removed T-needs-triage Type: this issue needs to be labelled labels Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-feature Type: feature T-to-investigate Type: to investigate
Projects
Status: Todo
Development

No branches or pull requests

2 participants