Minimal repro for hardhat_reset bug
The issue is, that we attempt to reset to a block X (X > 0), but instead, it resets to the 0th block.
The issue was about serialization vs hardhat itself. The master branch has been updated with the correct code, whereas the issue code is located in the issue branch.
- Run hardhat with mainnet fork. Even if you don't specify block it's fine.
- Specify your Alchemy key in the Program.fs file (10th line - alchemyKey) - replace the whole string with your key (including <>)
- Save the file
- Go to the root folder
- Run "dotnet run" command
- You should be able to see the output that prints block numbers before calling hardhat_reset and after.