Skip to content

Instantly share code, notes, and snippets.

@shreyvijayvargiya
Created May 6, 2022 18:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shreyvijayvargiya/a8d6ab893e6c10b1b9d1b1ffe47e9f63 to your computer and use it in GitHub Desktop.
Save shreyvijayvargiya/a8d6ab893e6c10b1b9d1b1ffe47e9f63 to your computer and use it in GitHub Desktop.
function addDocument(string memory hash) public returns(uint256 timeStamp) {
require(msg.sender == contractOwner , "Not a owner to store document");
documents[hash] = block.timestamp;
return block.timestamp;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment