Fix acceptance tests to use new syntax.

This commit is contained in:
KtorZ
2023-02-18 09:48:05 +01:00
parent 53fb821b62
commit 5132110d4b
17 changed files with 37 additions and 36 deletions

View File

@@ -1,6 +1,5 @@
use aiken/hash.{Blake2b_224, Hash}
use aiken/list
use aiken/string
use aiken/transaction.{ScriptContext}
use aiken/transaction/credential.{VerificationKey}
@@ -14,7 +13,7 @@ type Redeemer {
validator spend {
fn(datum: Datum, redeemer: Redeemer, context: ScriptContext) -> Bool {
let must_say_hello = string.from_bytearray(redeemer.msg) == "Hello, World!"
let must_say_hello = redeemer.msg == "Hello, World!"
let must_be_signed =
list.has(context.transaction.extra_signatories, datum.owner)
@@ -22,4 +21,3 @@ validator spend {
must_say_hello && must_be_signed
}
}