Skip to content

Instantly share code, notes, and snippets.

View Xychun's full-sized avatar
🎯
Focusing

JGS Xychun

🎯
Focusing
View GitHub Profile
@Xychun
Xychun / CoinCollector.sol
Created November 1, 2019 09:47
Coin Collector Smart Contract - Full
pragma solidity >=0.5.0 <0.6.0;
/// @author Julian Sakowski
/// @title A prototype game contract
contract CoinCollector {
/// @dev The amount of coins required to win the game.
uint256 private winCondition;
/// @dev Maps the subscriber index to an address.
mapping (address => uint256) private coinCount;