Sample Hardhat Project

This project demonstrates a basic Hardhat use case. It comes with a sample contract, a test for that contract, and a script that deploys that contract.

Try running some of the following tasks:

# compile smart contract code.
npx hardhat compile

# deploy smart contract just compiled on test net.
npx hardhat run scripts/deploy.js --network mumbai

#update CONTRACT_ADDRESS with new value in last run.

# interact with smart contract we just deploy.
npx hardhat run scripts/interact.js

Reference

https://docs.alchemy.com/docs/how-to-code-and-deploy-a-polygon-smart-contract https://wiki.polygon.technology/docs/develop/hardhat https://www.web3.university/tracks/create-a-smart-contract/deploy-your-first-smart-contract