Getting started with hardhat and react
-
start react app: cd client npm start
-
start local test bc from hardhat (use another terminal) cd blockchain (maybe you need to install hardhat ethers and waffle beforehand) npx hardhat node
-
deploy greeter to your local bc (use another terminal) npx hardhat run scripts/deploy.js --network localhost
-
install MetaMask (please use a chromium browser) and import an Account from your local bc -> use a copy of one of the private keys from your local test blockchain to
-
Nonce too high. Expected nonce to be 0 but got 19. Note that transactions can't be queued when automining. -> Maybe you restarted your Blockchain? In this case, your Blockchain expect that the nonce is 0 -> go to metamask settings and change manual the nonce
-
Calling an Account which is not a contract -> Could be false contract address in component -> redeploy the contract -> npx hardhat run scripts/deploy.js --network localhost -> double check the contract address