CrazybutSolid / ethereum-lottery

Ethereum smart contract lottery: 5 people send 0.2 ether, contract sends 0.8 ethers to one of the senders at random and 0.2 ethers to givedirectly

Home Page:https://tranquil-lake-59361.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

README

Ethereum Lottery (Ropsten)

How to play:

  1. Send 0.2 ether (exact) to address 0x20b8c246DCaF8Dd2c739A49c02D0dDfC752C1c07 1a) If you send more or less than 0.2 ether, the contract will reject the transaction
  2. After 5 people have sent 0.2 ether, the contract chooses one address at random and sends 0.8 ethers to it + 0.2 ethers to Give Directly's address
  3. The lottery restarts

I'm a terrible developer! Doing this for fun and to understand ethereum. Any suggestions to the code are highly encouraged and recommended.

Smart contract code is in the /contracts directory

About

Ethereum smart contract lottery: 5 people send 0.2 ether, contract sends 0.8 ethers to one of the senders at random and 0.2 ethers to givedirectly

https://tranquil-lake-59361.herokuapp.com/


Languages

Language:JavaScript 93.3%Language:Ruby 4.7%Language:HTML 1.7%Language:CSS 0.3%Language:CoffeeScript 0.0%