Refresh gift_card and hello_world examples.

This commit is contained in:
KtorZ
2024-09-01 18:16:39 +02:00
parent 7bfc01413b
commit 9f6daa8cd5
13 changed files with 30 additions and 33 deletions

View File

@@ -1,5 +1,5 @@
use aiken/collection/list
use cardano/credential.{VerificationKeyHash}
use aiken/crypto.{VerificationKeyHash}
use cardano/transaction.{OutputReference, Transaction}
pub type Datum {
@@ -16,7 +16,7 @@ validator hello_world {
redeemer: Redeemer,
_: OutputReference,
transaction: Transaction,
) -> Bool {
) {
let must_say_hello = redeemer.msg == "Hello, World!"
expect Some(Datum { owner }) = datum