The lottery contract functions like a raffle, with a prize pool and a list of players. Players send in some amount of ETH to the contract to enter the lottery. The first player, assumed to be the manager player, can initiate the random selection of a winner. The contract then sends the prize pool to that winner.
dcmalk/eth-lottery
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Example lottery smart contract
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published