This project features a smart contract that allows players to bet ETH in a lottery.
There are two main variables here, a manager and a player.
- Manager: Address of the person who created the contract
- Players: An array of addresses of people who have entered the raffle
With these two variables, there are also two main functions of this contract:
- enter: Enters a player into the lottery
- pickWinner: Randomly picks a winner and sends them the prize pool
Outside of these main points, there are a few small helper functions including getPlayers(), a modifier named restricted, and more... all of these can be found within the comments of lottery.sol
This project utilizes Solidity & JavaScript
Credits to Stephen Grider's Ethereum and Solidity: The Complete Developer's Guide

