You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It forks network around 80-120 blocks behind, which is strange for me. When I'm using block number explicitly (current or 1-2 behind) it works as it should.
I thought that expected behavior of getting fork based on the latest block is just to set URL without blockNumber. Since there is now option like blockNumber: "latest what is the most clean way to achieve it? Or am I doing something wrong?
The text was updated successfully, but these errors were encountered:
My hardhat version is 2.22.17
I'm trying to run forked state of the blockchain with my local node (I also tried with remote nodes and got same results).
I have very simple setup:
networks: { hardhat: { forking: { url: "http://127.0.0.1:8545", } } }
It forks network around 80-120 blocks behind, which is strange for me. When I'm using block number explicitly (current or 1-2 behind) it works as it should.
I thought that expected behavior of getting fork based on the latest block is just to set URL without blockNumber. Since there is now option like
blockNumber: "latest
what is the most clean way to achieve it? Or am I doing something wrong?The text was updated successfully, but these errors were encountered: