-
-
Save shreyvijayvargiya/a8d6ab893e6c10b1b9d1b1ffe47e9f63 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
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