Simple lottery

Under Review

TOOLSFINANCIALDOCUMENTS

Contract purpose

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

Parameters:

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

Copyright © Modex Marketplace