Skip to content

Commit

Permalink
cardano-api-test: adapt to deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
smelc committed Jan 22, 2025
1 parent 6a38901 commit 33dc07b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions cardano-api/test/cardano-api-test/Test/Cardano/Api/Address.hs
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ import Test.Tasty.Hedgehog (testProperty)

prop_roundtrip_shelley_address :: Property
prop_roundtrip_shelley_address =
roundtrip_serialise_address AsShelleyAddress genAddressShelley
roundtrip_serialise_address (AsAddress AsShelleyAddr) genAddressShelley

prop_roundtrip_byron_address :: Property
prop_roundtrip_byron_address =
roundtrip_serialise_address AsByronAddress genAddressByron
roundtrip_serialise_address (AsAddress AsByronAddr) genAddressByron

-- -----------------------------------------------------------------------------

Expand Down
4 changes: 2 additions & 2 deletions cardano-api/test/cardano-api-test/Test/Cardano/Api/Bech32.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module Test.Cardano.Api.Bech32
)
where

import Cardano.Api (AsType (AsShelleyAddress, AsStakeAddress))
import Cardano.Api (AsType (AsAddress, AsShelleyAddr, AsStakeAddress))

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

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

prop_roundtrip_Address_Shelley :: Property
prop_roundtrip_Address_Shelley = roundtrip_Bech32 AsShelleyAddress genAddressShelley
prop_roundtrip_Address_Shelley = roundtrip_Bech32 (AsAddress AsShelleyAddr) genAddressShelley

prop_roundtrip_StakeAddress :: Property
prop_roundtrip_StakeAddress = roundtrip_Bech32 AsStakeAddress genStakeAddress
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ import Test.Tasty.Hedgehog (testProperty)

prop_roundtrip_shelley_address_raw :: Property
prop_roundtrip_shelley_address_raw =
roundtrip_raw_bytes AsShelleyAddress genAddressShelley
roundtrip_raw_bytes (AsAddress AsShelleyAddr) genAddressShelley

prop_roundtrip_byron_address_raw :: Property
prop_roundtrip_byron_address_raw =
roundtrip_raw_bytes AsByronAddress genAddressByron
roundtrip_raw_bytes (AsAddress AsByronAddr) genAddressByron

prop_roundtrip_stake_address_raw :: Property
prop_roundtrip_stake_address_raw =
Expand Down

0 comments on commit 33dc07b

Please sign in to comment.