trufflesuite / ganache

:warning: The Truffle Suite is being sunset. For information on ongoing support, migration options and FAQs, visit the Consensys blog. Thank you for all the support over the years.
https://consensys.io/blog/consensys-announces-the-sunset-of-truffle-and-ganache-and-new-hardhat?utm_source=github&utm_medium=referral&utm_campaign=2023_Sep_truffle-sunset-2023_announcement_
MIT License
2.62k stars 676 forks source link

Unable to make function calls by block hash instead of block number on a fork #4180

Closed kolyasapphire closed 1 year ago

kolyasapphire commented 1 year ago

Our app fetches the latest block and makes subsequent requests on that block's block hash.

On Ganache Mainnet fork it fails to start receiving: Error: header not found

If block hash in blockTag is changed to block number, everything works as expected.

PoC CodeSandbox

kolyasapphire commented 1 year ago

Seems to be a duplicate of #973