@@ -671,7 +671,7 @@ changeMintedValueQuantityFrom tx exclude = do
671
671
someQuantity <- fromInteger <$> arbitrary `suchThat` (/= exclude) `suchThat` (/= 0 )
672
672
pure $ ChangeMintedValue $ fromList $ map (second $ const someQuantity) $ toList mintedValue
673
673
where
674
- mintedValue = txMintValueToValue $ txMintValue $ txBodyContent $ txBody tx
674
+ mintedValue = txMintValueToValue $ txMintValue $ getTxBodyContent $ txBody tx
675
675
676
676
-- | A 'Mutation' that changes the minted/burned quantity of tokens like this:
677
677
-- - when no value is being minted/burned -> add a value
@@ -680,7 +680,7 @@ changeMintedTokens :: Tx -> Value -> Gen Mutation
680
680
changeMintedTokens tx mintValue =
681
681
pure $ ChangeMintedValue $ mintedValue <> mintValue
682
682
where
683
- mintedValue = txMintValueToValue $ txMintValue $ txBodyContent $ txBody tx
683
+ mintedValue = txMintValueToValue $ txMintValue $ getTxBodyContent $ txBody tx
684
684
685
685
-- | A `Mutation` that adds an `Arbitrary` participation token with some quantity.
686
686
-- As usual the quantity can be positive for minting, or negative for burning.
@@ -697,7 +697,7 @@ addPTWithQuantity tx quantity =
697
697
pkh <- arbitrary
698
698
pure $ mintedValue <> fromList [(AssetId pid pkh, quantity)]
699
699
where
700
- mintedValue = txMintValueToValue $ txMintValue $ txBodyContent $ txBody tx
700
+ mintedValue = txMintValueToValue $ txMintValue $ getTxBodyContent $ txBody tx
701
701
702
702
-- | Replace first given 'PolicyId' with the second argument in the whole 'TxOut' value.
703
703
replacePolicyIdWith :: PolicyId -> PolicyId -> TxOut a -> TxOut a
@@ -928,7 +928,7 @@ replaceContesters contesters = \case
928
928
929
929
removePTFromMintedValue :: TxOut CtxUTxO -> Tx -> Value
930
930
removePTFromMintedValue output tx =
931
- case toList $ txMintValueToValue $ txMintValue $ txBodyContent $ txBody tx of
931
+ case toList $ txMintValueToValue $ txMintValue $ getTxBodyContent $ txBody tx of
932
932
[] -> error " expected minted value"
933
933
v -> fromList $ filter (not . isPT) v
934
934
where
0 commit comments