diff --git a/lib/fortuna/utils.ak b/lib/fortuna/utils.ak index f684157..96a0ea0 100644 --- a/lib/fortuna/utils.ak +++ b/lib/fortuna/utils.ak @@ -62,8 +62,7 @@ pub fn value_has_nft_and_lovelace( policy: PolicyId, asset_name: AssetName, ) -> Bool { - expect [Pair(policy1, amount1), - Pair(policy2, amount2)] = + expect [Pair(policy1, amount1), Pair(policy2, amount2)] = val |> value.to_dict() |> dict.to_pairs() diff --git a/lib/fortunav2.ak b/lib/fortunav2.ak index fa8ea07..7c623e8 100644 --- a/lib/fortunav2.ak +++ b/lib/fortunav2.ak @@ -34,8 +34,7 @@ pub fn genesis_v2(tx, own_policy, fortuna_v1_hash: Data, fork_script_hash: Data) expect fork_script_hash: ByteArray = fork_script_hash // 2 tokens minted - expect [Pair(_, 1), - Pair(_, 1)] = + expect [Pair(_, 1), Pair(_, 1)] = mint |> value.from_minted_value |> tokens(own_policy) diff --git a/validators/tunav2.ak b/validators/tunav2.ak index b3e146d..d3f8c30 100644 --- a/validators/tunav2.ak +++ b/validators/tunav2.ak @@ -76,8 +76,8 @@ validator(fortuna_v1_hash: Data, fork_script_hash: Data) { let big_tuna_name = bytearray.concat(fortunav2.big_tuna_prefix, spend_cred) - expect [Pair(token1, 1), - Pair(token2, 1)] = spend_value |> tokens(own_policy) + expect [Pair(token1, 1), Pair(token2, 1)] = + spend_value |> tokens(own_policy) let in_token_name = // By ledger rules we should only hit this first since token names @@ -112,10 +112,8 @@ validator(fortuna_v1_hash: Data, fork_script_hash: Data) { [] } else { [ - Pair( - fortuna.token_name, - initial_payout / pow2(halving_exponent), - ), + Pair(fortuna.token_name, + initial_payout / pow2(halving_exponent)), ] } @@ -363,19 +361,15 @@ validator(fortuna_v1_hash: Data, fork_script_hash: Data) { if builtin.less_than_bytearray(minted, burned) { [ - Pair( - bytearray.concat(fortunav2.nominated_prefix, script_hash), - -1, - ), + Pair(bytearray.concat(fortunav2.nominated_prefix, script_hash), + -1), Pair(minted, 1), Pair(burned, -1), ] } else { [ - Pair( - bytearray.concat(fortunav2.nominated_prefix, script_hash), - -1, - ), + Pair(bytearray.concat(fortunav2.nominated_prefix, script_hash), + -1), Pair(burned, -1), Pair(minted, 1), ]