Hi, I had the same error it was because I wasn't connected to the correct account in Metamask.
Make sure your metamask local network is on the same port provided when you run "npx hardhat node" probably "127.0.0.1:8545/" and then import the an account to metamask using any of the private keys given and test it again
Hi, I had the same error it was because I wasn't connected to the correct account in Metamask.
Make sure your metamask local network is on the same port provided when you run "npx hardhat node" probably "127.0.0.1:8545/" and then import the an account to metamask using any of the private keys given and test it again
This fixed it for me, thanks!