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 9ccd0f8 commit be8e517
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
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 be8e517

Please sign in to comment.