Skip to content

Commit

Permalink
tx receipt addded
Browse files Browse the repository at this point in the history
data to ipfs, return txhash, retrieve tx receipt. ToDO: add loading for txreceipt button
  • Loading branch information
mcchan1 committed Feb 17, 2018
1 parent 6a643e1 commit 212d435
Show file tree
Hide file tree
Showing 10 changed files with 388 additions and 41 deletions.
20 changes: 20 additions & 0 deletions contracts/StoreHash.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
pragma solidity ^0.4.17;


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;
}

}
//0x2cccd6e8269f0080a094ae8ccf17db93528ca0cd contract address
168 changes: 161 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"bootstrap": "^3.3.7",
"fs-extra": "^5.0.0",
"ipfs-mini": "^1.1.2",
"react": "^16.2.0",
"react-bootstrap": "^0.32.1",
"react-bootstrap-button-loader": "^1.0.11",
"react-dom": "^16.2.0",
"react-scripts": "1.1.0",
"web3": "^1.0.0-beta.26"
Expand Down
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
<title>ETH+IPFS App</title>
</head>
<body>

Expand Down
9 changes: 9 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.App {
text-align: center;

}

.App-logo {
Expand All @@ -22,6 +23,14 @@
font-size: large;
}

.table {
max-width: 90%;
margin: 10px;
}
.table th {
text-align: center;
}

@keyframes App-logo-spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
Expand Down
Loading

0 comments on commit 212d435

Please sign in to comment.