Update oneshot.ak

Updated with 
        `|> from_minted_value`
This commit is contained in:
Justin Syme 2023-06-07 15:01:46 -06:00 committed by Lucas
parent 3fc9c8e0db
commit fc9a60494e
1 changed files with 2 additions and 0 deletions

View File

@ -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()