test: fix acceptance tests

This commit is contained in:
rvcas
2023-08-16 14:52:06 -04:00
parent 80e4a5c6a2
commit f4d0f231d7
12 changed files with 43 additions and 55 deletions

View File

@@ -1,5 +1,4 @@
use aiken/dict
use aiken/list
use aiken/transaction.{ScriptContext}
use aiken/transaction/credential.{
Inline, ScriptCredential, VerificationKeyCredential,
@@ -21,7 +20,7 @@ validator {
),
)
[
and {
when dict.get(ctx.transaction.withdrawals, alice) is {
None -> fail @"alice's withdrawal not found"
Some(value) -> value == 42
@@ -31,7 +30,6 @@ validator {
Some(value) -> value == 14
},
dict.keys(ctx.transaction.withdrawals) == [alice, bob],
]
|> list.and
}
}
}