Last active
October 16, 2020 22:15
-
-
Save entzik/e2c3773764d8dbcc4f625e533d8ec6dc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
preconsuming choice IssueInvites : ContractId Doodle | |
controller organizer | |
do | |
assertMsg "this doodle has been opened for voting, cannot issue any more invites" (not open) | |
DA.Traversable.mapA | |
(\voter -> create DoodleInvite | |
with doodleName = this.name, organizer = this.organizer, voter = voter) | |
voters | |
-- archive self | |
create this with open = True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment