Last active
March 17, 2018 22:15
-
-
Save sloppylopez/4eae97bad2a686c0cddace675f8267ec 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.4.21; | |
contract TimesheetContract { | |
string timesheetHash = ''; | |
address owner; | |
function TimesheetContract() { | |
owner = msg.sender; | |
} | |
function getTimesheetHash() constant returns(string){ | |
return timesheetHash; | |
} | |
function setTimesheetHash(string newTimeSheetHash) returns(string){ | |
if(owner != msg.sender) { | |
return "You shall not pass, you need to be the owner"; | |
} | |
timesheetHash = newTimeSheetHash; | |
return "Sucessfull change of timesheetHash"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment