Skip to content

Instantly share code, notes, and snippets.

@whiteyhat
Created May 21, 2019 20:23
Show Gist options
  • Save whiteyhat/107dcabbb0a8d19e960605deb3d37ba1 to your computer and use it in GitHub Desktop.
Save whiteyhat/107dcabbb0a8d19e960605deb3d37ba1 to your computer and use it in GitHub Desktop.
Hippocrates smart contract to upload the IPFS hash from the hippocrates passport
pragma solidity ^0.4.17;
contract Contract {
string ipfsHash;
function sendHippocratesHash(string x) public {
ipfsHash = x;
}
function getHipocrattesHash() 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