Skip to content

Instantly share code, notes, and snippets.

@entzik
Created September 7, 2020 14:48
Show Gist options
  • Save entzik/d27a2ed427cc107b0ea9993ffb417166 to your computer and use it in GitHub Desktop.
Save entzik/d27a2ed427cc107b0ea9993ffb417166 to your computer and use it in GitHub Desktop.
test = scenario do
user1 <- getParty "User One"
user2 <- getParty "User Two"
user3 <- getParty "User Three"
userContract1 <- user1 `submit` do
create User with username = user1, following = []
userContract2 <- user2 `submit` do
create User with username = user2, following = []
userContract3 <- user3 `submit` do
create User with username = user3, following = [user2, user3]
contract1 <- user1 `submit` do
exercise userContract1 Follow with userToFollow = user2
pure()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment