Skip to content

Instantly share code, notes, and snippets.

@atisheksingh
Forked from joechai93/hardhat_cheatsheet.md
Created March 29, 2022 14:49
Show Gist options
  • Save atisheksingh/7351c0d33a13eb537e7419051b3acbf2 to your computer and use it in GitHub Desktop.
Save atisheksingh/7351c0d33a13eb537e7419051b3acbf2 to your computer and use it in GitHub Desktop.
Hardhat Cheat Sheet

Compile

npx hardhat compile

Run unit tests

npx hardhat test

Start local node

npx hardhat node

Deploy to Rinkeby

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

Verify smart contract on Etherscan

npx hardhat verify --network rinkeby "address-of-contract" "Constructor argument 1"

Start hardhat console on localhost

npx hardhat console --network localhost

@atisheksingh
Copy link
Author

erc20Token = ERC20Token.attach(erc20TokenAddress)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment