foundry icon indicating copy to clipboard operation
foundry copied to clipboard

Forge fails to fork against Anvil instances that load state

Open emo-eth opened this issue 1 year ago • 4 comments

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.

emo-eth avatar Feb 29 '24 21:02 emo-eth

I'm having the same issue.

ArshanKhanifar avatar Jun 02 '24 02:06 ArshanKhanifar

I'm having the same issue as well.

chrismin avatar Jun 26 '24 14:06 chrismin

me three! Screenshot 2024-06-28 at 7 18 15 PM

qt-ritual avatar Jun 29 '24 02:06 qt-ritual

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

mattsse avatar Jun 29 '24 05:06 mattsse

@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 avatar Jul 11 '24 15:07 zerosnacks

@zerosnacks seems to have been resolved by #7502

emo-eth avatar Jul 16 '24 23:07 emo-eth