I've been using hardhat node on "automining" during a period of time during the first steps of a project.
When I switched to interval mining for a while and I wanted to come back again to automining I just cannot come back and any submit to the smart contract resolves with:
1 MetaMask - RPC Error: Internal JSON-RPC error.
{code: -32603, message: 'Internal JSON-RPC error.', data: {…}}
code: -32603
data: {code: -32000, message: 'Received invalid block tag 1698. Latest block number is 138'}
message: "Internal JSON-RPC error."
Block numbers change.
The only way to continue developing is at restarting the blockmining and lowering the blocktime until reach the last block mined. Which is shit.
Is there any way to reset the hardhat node to initials?
Thanks in advance.
The only issues regarding the topic I found are:
StackExchange - received-invalid-block-tag-87-latest-block-number-is-0
and its link to hardhat github issue:
None of the proposals worked.