Skip to content

Instantly share code, notes, and snippets.

@entzik
Last active October 16, 2020 22:15
Show Gist options
  • Save entzik/e2c3773764d8dbcc4f625e533d8ec6dc to your computer and use it in GitHub Desktop.
Save entzik/e2c3773764d8dbcc4f625e533d8ec6dc to your computer and use it in GitHub Desktop.
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