This project is a decentralized lottery/raffle application implemented using Solidity and Foundry. Developed following the Cyfrin Updraft online course. Cyfrin repo: https://github.com/Cyfrin/foundry-smart-contract-lottery-cu
- Users enter the lottery by sending ETH to the smart contract, paying a predefined minimum entry fee.
- After a specified amount of time, a winner is selected randomly from the list of participants.
- The winner receives the entire accumulated prize pool.
-
Clone the Repository:
git clone https://github.com/sergipastor/smart-contract-lottery-cyfrin.git cd smart-contract-lottery-cyfrin
-
Install Dependencies:
make install
-
Compile Contracts:
make build
-
Run Tests:
make test