Simple lottery

Contract purpose

The smart contract is responsible with keeping a list of players and choosing a winner when the contract owner decides to.


manager:_ sets owner1 address
players_: sets owner2 address

Exposed methods

enter adds the address that calls the method to the players list; the call value must be above 0.05
pickWinner picks a random winner; must be called by the contract owner
getPlayers gets the list of players

Reviewed by Modex
Buy Contract Test Contract

Create an account or login to purchase this smart contract