Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct NotaryEntry{
- uint id;
- string description;
- uint timestamp;
- string hash;
- address setBy;
- bool isSet;
- }
- function addNotaryEntry( string memory _hash, string memory _desc) public {
- uint _id = filesCount += 1;
- NotaryEntry memory notary;
- notary.id = _id;
- notary.description = _desc;
- notary.timestamp = now;
- notary.hash = _hash;
- notary.setBy = msg.sender;
- notary.isSet = true;
- personFiles[msg.sender].push(filesCount);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement