In this tutorial we’ll be walking through building and deploying a decentralized lottery smart contract in Solidity using Hardhat. In this example use case, anyone can choose a number 1–10,000 and buy a ticket to enter into a weekly lottery. The ticket revenue is collected into a pot in the…