DeFiFoFum / hardhat-template

Solidity Smart Contract development template using modern Web3 frameworks/tools including Hardhat, Typechain and more.
GNU General Public License v3.0
1 stars 3 forks source link

Fork Testing Issue in v4.0 #19

Closed DeFiFoFum closed 2 months ago

DeFiFoFum commented 5 months ago
$ hardhat run ./scripts/deploy/deployLock.ts --network hardhat
🍴  Hardhat network detected, setting up fork for network bsc
🍴  Setting up fork of bsc at block latest.
ProviderError: The response reported error `-32000`: `missing trie node`.
DeFiFoFum commented 2 months ago

This error is normally because of trying to access historical info on a non-archive node.

But I was also having it on nodes which I knew worked in other contexts.

I resolved the issue by downgrading the hardhat version and pinning it.