A multi-player Lottery that can be deployed on Ethereum blockchain. Written & debugged on Remix web IDE. Includes smart contract compilation and deployment files (compile.js
and deploy.js
).
Includes Mocha tests that validate
- contract deployment
- manager's address initialization
- a single player can enter the lottery
- multiple players can enter the lottery
- the deposit of minimum ether
Clone the project
git clone https://github.com/davit-gh/eth_lottery
Go to the project directory
cd lottery
Install dependencies
npm install
Run Mocha tests
npm run test