npm i
npx hardhat node
npx hardhat run scripts/deploy.js --network localhost
After that, run
npx hardhat run scripts/interactWithContract.js --network localhost
Try running some of the following tasks:
npx hardhat help
npx hardhat test
REPORT_GAS=true npx hardhat test
npx hardhat node
npx hardhat ignition deploy ./ignition/modules/Lock.ts