This project demonstrates How to buy coffee to contract owner.
For simple test purpose on console, run below command.
npx hardhat run scripts/buy-coffee.js
npx hardhat run scripts/withdraw.jsTo deploy, run below command
npx hardhat run scripts/deploy.jsGoerli deploy is below.
npx hardhat run scripts/deploy.js --network goerliTo deploy on polygon mumbai test net, run the following command.
npx hardhat run --network mumbai scripts/deploy.js --show-stack-tracesTo see website, run the following command.
cd client && npm run dev