Skip to content
Snippets Groups Projects

replayfix+listfeature

Closed Robert Martin-Legene requested to merge bugfix+feature into master
1 file
+ 3
2
Compare changes
  • Side-by-side
  • Inline
@@ -9,7 +9,8 @@ contract ProofOfExistence {
function stamp(uint256 ots, uint256 file_hash) public {
hashstore[ots] = Dato({blockNumber: block.number, hash: file_hash});
if ( hashstore[ots] == 0 )
hashstore[ots] = Dato({blockNumber: block.number, hash: file_hash});
}
function verify(uint256 ots, uint256 file_hash) public view returns(bool){
@@ -26,4 +27,4 @@ contract ProofOfExistence {
Dato memory dato = hashstore[ots];
return dato.blockNumber;
}
}
\ No newline at end of file
}
Loading