Fix remaining acceptance tests to be V3-compatible

This commit is contained in:
KtorZ
2024-08-27 18:58:50 +02:00
parent d615b4f889
commit 48535636ed
59 changed files with 357 additions and 277 deletions

View File

@@ -1,7 +1,11 @@
use aiken/transaction.{ScriptContext}
use cardano/transaction.{Transaction}
validator is_fourty_two {
spend(dat, rdm, oref, _ctx: Transaction) -> Bool {
rdm == dat && #"68656c6c6f20776f726c64" == #"68656c6c6f20776f726c64"
spend(dat, rdm, _oref, _ctx: Transaction) {
Some(rdm) == dat && #"68656c6c6f20776f726c64" == #"68656c6c6f20776f726c64"
}
else(_) {
fail
}
}