To fork a network in hardhat you need to change config that adds this line to your networks networks: { hardhat: { forking: { enabled: true, url: 'https://rpc.gnosischain.com', blockNumber: 29279000, }, .... With that, when you run hardhat node or hardhat test you will have your local node running at snapshot of whatever chain url rpc you put into config. This will give you different output when running tests it('return data for forked network, async function () { console.log(await getBlockNu...