diff --git a/cardano-api/test/cardano-api-test/Test/Cardano/Api/Typed/CBOR.hs b/cardano-api/test/cardano-api-test/Test/Cardano/Api/Typed/CBOR.hs index 317cbf7d8e..ffca31fba8 100644 --- a/cardano-api/test/cardano-api-test/Test/Cardano/Api/Typed/CBOR.hs +++ b/cardano-api/test/cardano-api-test/Test/Cardano/Api/Typed/CBOR.hs @@ -27,12 +27,11 @@ import Test.Tasty.Hedgehog (testProperty) -- TODO: Need to add PaymentExtendedKey roundtrip tests however -- we can't derive an Eq instance for Crypto.HD.XPrv - prop_roundtrip_txbody_CBOR :: Property prop_roundtrip_txbody_CBOR = H.property $ do AnyShelleyBasedEra era <- H.forAll $ Gen.element [minBound..maxBound] x <- H.forAll $ makeSignedTransaction [] <$> genTxBody era - H.tripping x (serialiseTxLedgerCddl $ toCardanoEra era) (deserialiseTxLedgerCddl $ toCardanoEra era) + H.tripping x (serialiseTxLedgerCddl $ toCardanoEra era) (deserialiseTxLedgerCddl era) prop_roundtrip_tx_CBOR :: Property prop_roundtrip_tx_CBOR = H.property $ do @@ -171,7 +170,7 @@ prop_roundtrip_Tx_Cddl :: Property prop_roundtrip_Tx_Cddl = H.property $ do AnyShelleyBasedEra era <- H.forAll $ Gen.element [minBound..maxBound] x <- forAll $ genTx era - H.tripping x (serialiseTxLedgerCddl $ toCardanoEra era) (deserialiseTxLedgerCddl $ toCardanoEra era) + H.tripping x (serialiseTxLedgerCddl $ toCardanoEra era) (deserialiseTxLedgerCddl era) prop_roundtrip_TxWitness_Cddl :: Property prop_roundtrip_TxWitness_Cddl = H.property $ do diff --git a/cardano-api/test/cardano-api-test/Test/Cardano/Api/Typed/TxBody.hs b/cardano-api/test/cardano-api-test/Test/Cardano/Api/Typed/TxBody.hs index 5b9e9c7ac5..d0a0baee64 100644 --- a/cardano-api/test/cardano-api-test/Test/Cardano/Api/Typed/TxBody.hs +++ b/cardano-api/test/cardano-api-test/Test/Cardano/Api/Typed/TxBody.hs @@ -25,8 +25,8 @@ import Test.Tasty.Hedgehog (testProperty) prop_roundtrip_txbodycontent_txouts:: Property prop_roundtrip_txbodycontent_txouts = H.property $ do - let era = BabbageEra - content <- H.forAll $ genTxBodyContent ShelleyBasedEraBabbage + let era = ShelleyBasedEraBabbage + content <- H.forAll $ genTxBodyContent era -- Create the ledger body & auxiliaries body <- case createAndValidateTransactionBody era content of Left err -> annotateShow err >> failure