fix: gift card example stdlib update

closes #596
This commit is contained in:
rvcas
2023-06-13 00:38:29 -04:00
parent 22d491bb88
commit 37b2f0c239
8 changed files with 51 additions and 85 deletions

View File

@@ -23,16 +23,12 @@ validator {
[
when dict.get(ctx.transaction.withdrawals, alice) is {
None ->
error @"alice's withdrawal not found"
Some(value) ->
value == 42
None -> error @"alice's withdrawal not found"
Some(value) -> value == 42
},
when dict.get(ctx.transaction.withdrawals, bob) is {
None ->
error @"bob's withdrawal not found"
Some(value) ->
value == 14
None -> error @"bob's withdrawal not found"
Some(value) -> value == 14
},
dict.keys(ctx.transaction.withdrawals) == [alice, bob],
]