Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let (op,docAddress) =
- Contract.create
- ~storage: (fileHash,userAddress,Set,Set)
- ~manager:manager
- ~spendable:false
- ~delegatable:false
- ~delegate:(None)
- ~amount:0tz (contract Document)
- in
- let userDocuments = match Map.find userAddress storage.usersDocuments with
- | None -> Set
- | Some docSotrage -> docSotrage
- in
- let userDocuments = Set.add docAddress userDocuments in
Add Comment
Please, Sign In to add comment