pragma solidity ^0.4.17; import "./ContractRegistry.sol"; /* solium-disable security/no-tx-origin*/ contract ScoreCardContract { uint public CONTRACT_VERSION = 0; string public CONTRACT_NAME = "ScoreCardContract"; int score = 0; mapping(string => timestamp) players; event PlayerScored( string scoreUUID, string playerName, uint256 timeOfScore ); constructor(address _contractRegistryAddress, string _scoreUUID) public { ContractRegistry contractRegistry = ContractRegistry(_contractRegistryAddress); scoreUUID = _scoreUUID; } function incrementScore(string _playerName) public{ players[_playerName] = block.timestamp score = score + 1; emit PlayerScored(scoreUUID, _playerName, players[_playerName]); } }
0.4.17