Writing, testing and debugging contracts using Buidler
summary
Live demo shows how to set up a Solidity project with Buidler, use ethers and Waffle to deploy and test a minimal token with an initial supply of 1,000,000, and write mocha/chai tests that call ethers.getSigners, deploy via ContractFactory, check balances and run transfers. Debugging uses Buidler EVM plus console.log in Solidity to print state and VM stack traces, and Waffle assertions like expect().to.be.revertedWith to verify require reverts; deploy scripts target Infura/Ropsten when replacing VM keys.
AI-written summary · about
chapters (14)
- 0:00Workshop introduction
- 2:08Environment setup
- 5:05Introduction to Buidler
- 7:47Installing dependencies
- 12:28Smart contract languages
- 15:30Buidler configuration
- 17:13Writing a smart contract
- 19:43Creating unit tests
- 24:06Deploying and testing
- 33:50Implementing token logic
- 47:36Debugging with console logs
- 59:48Advanced testing
- 1:07:05Deployment scripts
- 1:21:37Wrap up and logistics
related talks
01h 03mBeginners Track Welcome & Speedrun Ethereum Introduction
22mExpert Devs: Q&A on Waffle, useDApp, Productivity, and Governance
29mBuilding Onchain in the Age of Agency With BuidlGuidl
30mHaving fun with Hardhat
02h 47mGetting Started with Ethereum Solidity Development
20mWhat's New in
26mAll your Ether belong to us (Hacking Ethereum-based DApps)
01h 30mEthereum Dev Onboarding Day
