Forge fails to fork against Anvil instances that load state
Component
Forge
Have you ensured that all of these are up to date?
- [X] Foundry
- [ ] Foundryup
What version of Foundry are you on?
No response
What command(s) is the bug in?
forge test
Operating System
macOS (Apple Silicon)
Describe the bug
When anvil is loaded with a --load-state parameter, Forge fails with the error:
2024-02-29T21:50:20.568272Z ERROR foundry_evm_core::fork::init: It looks like you're trying to fork from an older block with a non-archive node which is not supported. Please try to change your RPC url to an archive node if the issue persists.
when the anvil RPC is specified as a fork url.
I'm having the same issue.
I'm having the same issue as well.
me three!
this error is logged if the server responds with "missing trie node" error which means it does not have the requested state to fork from. please try another endpoint
@emo-eth / @ArshanKhanifar / @chrismin / @qt-ritual additional details and preferably a minimal reproduction would be greatly appreciated
Looks like it possibly could just be limited to improving clarity of the error message
@zerosnacks seems to have been resolved by #7502