Last active
August 5, 2019 19:14
-
-
Save yakkomajuri/702329f0edf97e91933918d9ddf3be93 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity^0.5.0; | |
contract HashCheckpoint { | |
mapping(address => bytes32) public checkpointHash; | |
event LogSuccess(bool registered); | |
function registerHash(bytes32 _latestHash) external { | |
checkpointHash[msg.sender] = _latestHash; | |
emit LogSuccess(true); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment