misc changes

This commit is contained in:
Kasey White
2023-04-07 02:36:39 -04:00
committed by Kasey
parent f8483da4e0
commit 897011e9bc
11 changed files with 217 additions and 51 deletions

View File

@@ -23,15 +23,19 @@ 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],
]
|> list.and
|> list.and
}
}