Zlerp / basic-hardhat-example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

Make sure you have hardhat globally installed

Clone the repo and run:

git clone git@github.com:Zlerp/basic-hardhat-example.git
cd basic-hardhat-example
npm install

Deployment and Verification steps:

First compile the smart contracts:

npx hardhat compile

Deploy to sepolia:

npx hardhat run scripts/deploy.js --network sepolia

Etherscan verification (Need Etherscan API for that)

npx hardhat verify --network sepolia CONTRACTADDRESS "ipfs:thisIsIPFSCID/

Note:

You may need to run if artifacts/cache messed up:

npx hardhat clean

About


Languages

Language:JavaScript 63.8%Language:Solidity 36.2%