Skip to content

Commit e5b7eff

Browse files
committed
cardano-api-test: adapt to deprecations
1 parent 6a38901 commit e5b7eff

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

cardano-api/internal/Cardano/Api/Tx/Sign.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ instance IsCardanoEra era => HasTextEnvelope (KeyWitness era) where
749749
getTxBodyAndWitnesses :: Tx era -> (TxBody era, [KeyWitness era])
750750
getTxBodyAndWitnesses tx = (getTxBody tx, getTxWitnesses tx)
751751

752-
{-# Deprecated Tx "Use getTxBodyAndWitnesses instead." #-}
752+
{-# DEPRECATED Tx "Use getTxBodyAndWitnesses instead." #-}
753753
pattern Tx :: TxBody era -> [KeyWitness era] -> Tx era
754754
pattern Tx txbody ws <- (getTxBodyAndWitnesses -> (txbody, ws))
755755
where

cardano-api/test/cardano-api-test/Test/Cardano/Api/Address.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ import Test.Tasty.Hedgehog (testProperty)
2424

2525
prop_roundtrip_shelley_address :: Property
2626
prop_roundtrip_shelley_address =
27-
roundtrip_serialise_address AsShelleyAddress genAddressShelley
27+
roundtrip_serialise_address (AsAddress AsShelleyAddr) genAddressShelley
2828

2929
prop_roundtrip_byron_address :: Property
3030
prop_roundtrip_byron_address =
31-
roundtrip_serialise_address AsByronAddress genAddressByron
31+
roundtrip_serialise_address (AsAddress AsByronAddr) genAddressByron
3232

3333
-- -----------------------------------------------------------------------------
3434

cardano-api/test/cardano-api-test/Test/Cardano/Api/Bech32.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module Test.Cardano.Api.Bech32
33
)
44
where
55

6-
import Cardano.Api (AsType (AsShelleyAddress, AsStakeAddress))
6+
import Cardano.Api (AsType (AsAddress, AsShelleyAddr, AsStakeAddress))
77

88
import Test.Gen.Cardano.Api.Typed (genAddressShelley, genStakeAddress)
99

@@ -13,7 +13,7 @@ import Test.Tasty (TestTree, testGroup)
1313
import Test.Tasty.Hedgehog (testProperty)
1414

1515
prop_roundtrip_Address_Shelley :: Property
16-
prop_roundtrip_Address_Shelley = roundtrip_Bech32 AsShelleyAddress genAddressShelley
16+
prop_roundtrip_Address_Shelley = roundtrip_Bech32 (AsAddress AsShelleyAddr) genAddressShelley
1717

1818
prop_roundtrip_StakeAddress :: Property
1919
prop_roundtrip_StakeAddress = roundtrip_Bech32 AsStakeAddress genStakeAddress

cardano-api/test/cardano-api-test/Test/Cardano/Api/RawBytes.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ import Test.Tasty.Hedgehog (testProperty)
2323

2424
prop_roundtrip_shelley_address_raw :: Property
2525
prop_roundtrip_shelley_address_raw =
26-
roundtrip_raw_bytes AsShelleyAddress genAddressShelley
26+
roundtrip_raw_bytes (AsAddress AsShelleyAddr) genAddressShelley
2727

2828
prop_roundtrip_byron_address_raw :: Property
2929
prop_roundtrip_byron_address_raw =
30-
roundtrip_raw_bytes AsByronAddress genAddressByron
30+
roundtrip_raw_bytes (AsAddress AsByronAddr) genAddressByron
3131

3232
prop_roundtrip_stake_address_raw :: Property
3333
prop_roundtrip_stake_address_raw =

0 commit comments

Comments
 (0)