From fc9a60494e06887d6d7135f8029cec2fba3d4c81 Mon Sep 17 00:00:00 2001 From: Justin Syme Date: Wed, 7 Jun 2023 15:01:46 -0600 Subject: [PATCH] Update oneshot.ak Updated with `|> from_minted_value` --- examples/gift_card/validators/oneshot.ak | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/gift_card/validators/oneshot.ak b/examples/gift_card/validators/oneshot.ak index 6c3e5278..7b9f0474 100644 --- a/examples/gift_card/validators/oneshot.ak +++ b/examples/gift_card/validators/oneshot.ak @@ -21,6 +21,7 @@ validator(token_name: ByteArray, utxo_ref: OutputReference) { expect [(asset_name, amount)] = mint + |> from_minted_value |> value.tokens(policy_id) |> dict.to_list() @@ -46,6 +47,7 @@ validator(token_name: ByteArray, policy_id: ByteArray) { expect [(asset_name, amount)] = mint + |> from_minted_value |> value.tokens(policy_id) |> dict.to_list()