Skip to content

Instantly share code, notes, and snippets.

@jacksonng77
Created September 16, 2018 07:31
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 jacksonng77/d8b3564a302a3da0d0788165c2092171 to your computer and use it in GitHub Desktop.
Save jacksonng77/d8b3564a302a3da0d0788165c2092171 to your computer and use it in GitHub Desktop.
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