#Contract
Автор: Donutdebug
Загружено: 2025-04-17
Просмотров: 45
In Day 3 of my 15-Day Smart Contract Challenge, we build a complete Lottery DApp from scratch using Solidity and test it using Hardhat!
👨💻 What’s Covered:
Writing a secure Lottery smart contract
Using keccak256 to generate random winners
Emitting custom events (WinnerPicked)
Writing unit tests with Hardhat + Chai
🔒 Topics:
Access control with onlyManager modifier
ETH transfers to the winner
Storing and resetting players
📦 Tech Used:
Solidity
Hardhat
JavaScript for testing
🎯 Goal: Learn how real-world decentralized lotteries work and how randomness can be simulated on-chain.
📅 Smart Contract using hardhat and solidity Challenge Playlist:
💬 Drop your questions in the comments & don’t forget to like and subscribe for more Solidity hands-on projects!
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: