Sample Hardhat Project

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

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.js

To compile the Hardhat Sample Project

  1. Clone the repository
  2. Having all the required independencies installed inplace.
  3. Run the following command:
npx hardhat compile

To Deploy The Contract To A Testnet

  • Run the following command:
npx hardhat ignition deploy ./ignition/modules/Token.js --network hardhat

Reference

https://hardhat.org/tutorial

Happy Hacking <3