Category: Uncategorized

Ethereum Lottery Example Part 3: Collecting an Entrance Fee

See Part 2 Here Code Change: https://github.com/samuelfrench/solidity-lottery/commit/96c1763400c3b0f8603695ee4d4e4ef537f98df8 Changelog: Add balances mapping to have a constant-time way to look up entrants Make enter a payable function to accept an entrance fee Check entrance fee Check balance to see if they’ve entered before Add getLotteryBalance for debugging Update solidity version (not shown in commit) Add override modifier […]