Having fun with Hardhat
summary
Hands-on Hardhat demo shows local EVM workflow: compile, deploy with hardhat-deploy, run unit tests with coverage, and see gas numbers via the gas reporter (adding a uint256 increases gas). Live tricks include console.log in Solidity, mining blocks, setting time, and setting account balances (example: balance set to 5 then to 49 ETH). A mainnet fork lets impersonation and token transfers (gave 5 DAI, then 10 DAI total) and contracts are submitted for Rinkeby verification.
AI-written summary Β· about
chapters (11)
- 0:00Start
- 2:34Getting Started
- 2:56Hard Hat Toolbox
- 3:48Hard Hack Config File
- 9:26Debugging Your Smart Contracts
- 12:25Testing
- 14:15Gas Reporters
- 17:48Tasks and Scripts
- 26:38Verify Contracts
- 26:55Verifying Your Contracts
- 27:52Verified Contracts








