How to setup dev environment
$ node --version
v16.15.0
- Create
.envfile with these keys
INFURA_API_KEY= # infura api key
ETHERSCAN_API_KEY= # ether scan api key
PRI_KEY= # private key of your metamask- Install npm packages
# Install npm packages
npm i- Compile contracts
# Compile
npx hardhat compile- run unit test and coverage report
npx hardhat test
npx hardhat coverage