June 12, 2018

Lottery as a Smart Contract: The Codes

Lottery as a Smart Contract: The Codes

This is the final part of the Lottery Smart Contract series that I started 2 weeks ago. You are read part 1 here and part 2 here. In this final part I will be walking through the codes of the Lottery Smart Contract to explain what some of the more important lines of codes do. 

Lottery as a Smart Contract: The Execution

Lottery as a Smart Contract: The Execution

This is part 2 of the “Lottery as a Smart Contract” series. In part 1, I described the business logic behind the Lottery Smart Contract. Here, I will demonstrate how this contract is executed. To run this, you will need: Remix, the Solidity IDE here. Metamask wallet with 2 accounts that have some ETH in