A simple ethereum based dApp in which players enter the lottery Contract by putting some amount of ethers into the Contract and further the manager of the Contract picks a random winner from all the participating players to whom all the ethers into the Contract are transfered.
This project was bootstrapped with Create React App.
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
The contract is deployed on Rinkeby test network at address '0xE211fe3d4350c0207808Aaa532C649b8c5953123' with the help of infura node api. If you want to deploy the contract on your own:
- Checkout
deploy.js
file in thelottery
directory, do the neccessary changes as suggested over there. - Thereafter run the
deploy.js
file and replace the values ofABI
andaccount-address
inlottery.js
file insrc
directory with values of the same printed on console.