Fix remaining acceptance tests to be V3-compatible
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user