Created
September 16, 2018 07:31
-
-
Save jacksonng77/d8b3564a302a3da0d0788165c2092171 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.17; | |
contract ImageHash { | |
string ipfsHash; | |
event savedHash( | |
); | |
function setHash(string x) public { | |
ipfsHash = x; | |
emit savedHash(); | |
} | |
function getHash() public view returns (string x) { | |
return ipfsHash; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment