Anyone has experiance testing using Hardhat with forking BSC mainnet?
I got weird error: Error: Returned error: missing trie node f9e52003ecc2150404f25976eb69f46571f9a17b7ca27252b2f587b4bd6aa6bf (path )
Aug 5, 2021, 6:01 PM
config: hardhat: {
forking: {
url: 'https://bsc-dataseed.binance.org/',
accounts: [process.env.PRIVATE_KEY],
chainId: 56,
},
},
forking: {
url: 'https://bsc-dataseed.binance.org/',
accounts: [process.env.PRIVATE_KEY],
chainId: 56,
},
},
Aug 5, 2021, 6:02 PM
your node ran out of sync
re run the fork command and try
Aug 5, 2021, 6:23 PM
still the same, any command for sync network for hardhat?
npx hardhat node --fork https://bsc-dataseed.binance.org/
it works with infura, so I dont have to sync, anyone has alternative for infura for BSC?
Aug 5, 2021, 7:23 PM
Pocket network has a bsc service :)
Aug 5, 2021, 7:32 PM