npx hardhat node
npx hardhat run scripts/deploy.js --network localhost
npm run dev
Make sure that your account on metamask has eth
- copy privatekey from any account on the node in terminal (after npx hardhat node)
- import the account into your meta mask wallet
- connect it to the site
- Make sure you are on localhost:8545 on metamask