forked from mcchan1/eth-ipfs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
20 additions
and
48 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,15 @@ | ||
pragma solidity ^0.4.17; | ||
|
||
//0xb84b12e953f5bcf01b05f926728e855f2d4a67a9 contract address on rinkeby | ||
//deployed using remix | ||
|
||
contract Contract { | ||
string ipfsHash; | ||
address public sender; | ||
|
||
function sendHash(string x) public { | ||
ipfsHash = x; | ||
} | ||
function notary() { | ||
sender = msg.sender; | ||
} | ||
|
||
function getHash() public view returns (string x) { | ||
return ipfsHash; | ||
} | ||
string ipfsHash; | ||
|
||
function sendHash(string x) public { | ||
ipfsHash = x; | ||
} | ||
|
||
} | ||
//0x2cccd6e8269f0080a094ae8ccf17db93528ca0cd contract address | ||
function getHash() public view returns (string x) { | ||
return ipfsHash; | ||
} | ||
} |
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
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
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