Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. struct NotaryEntry{
  2. uint id;
  3. string description;
  4. uint timestamp;
  5. string hash;
  6. address setBy;
  7. bool isSet;
  8. }
  9.  
  10. function addNotaryEntry( string memory _hash, string memory _desc) public {
  11.  
  12. uint _id = filesCount += 1;
  13.  
  14. NotaryEntry memory notary;
  15. notary.id = _id;
  16. notary.description = _desc;
  17. notary.timestamp = now;
  18. notary.hash = _hash;
  19. notary.setBy = msg.sender;
  20. notary.isSet = true;
  21. personFiles[msg.sender].push(filesCount);
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement