Skip to content

Commit 8cbf3f2

Browse files
committed
Update for cardano-api#945
1 parent 73c37e6 commit 8cbf3f2

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

cardano-testnet/src/Parsers/Cardano.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ module Parsers.Cardano
66
) where
77

88
import Cardano.Api (AnyShelleyBasedEra (AnyShelleyBasedEra), EraInEon (..), prettyShow)
9+
import Cardano.Api.Era (ShelleyBasedEra (..))
910

1011
import Cardano.CLI.Environment
1112
import Cardano.CLI.EraBased.Common.Option hiding (pNetworkId)
@@ -83,7 +84,7 @@ pCardanoTestnetCliOptions envCli = CardanoTestnetOptions
8384
where
8485
pAnyShelleyBasedEra' :: Parser AnyShelleyBasedEra
8586
pAnyShelleyBasedEra' =
86-
pAnyShelleyBasedEra envCli <&> (\(EraInEon x) -> AnyShelleyBasedEra x)
87+
pure $ AnyShelleyBasedEra ShelleyBasedEraConway -- TODO remove this hardcode
8788

8889
pTestnetNodeOptions :: Parser [NodeOption]
8990
pTestnetNodeOptions =

cardano-testnet/test/cardano-testnet-test/Cardano/Testnet/Test/Rpc/Transaction.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ hprop_rpc_transaction = integrationRetryWorkspace 2 "rpc-tx" $ \tempAbsBasePath'
8282
Rpc.nonStreaming conn (Rpc.rpc @(Rpc.Protobuf UtxoRpc.QueryService "readParams")) req
8383

8484
utxos' <- do
85-
let req = def & #addresses . #items .~ [T.encodeUtf8 addrTxt0]
85+
let req = def & #cardanoAddresses . #items .~ [T.encodeUtf8 addrTxt0]
8686
Rpc.nonStreaming conn (Rpc.rpc @(Rpc.Protobuf UtxoRpc.QueryService "readUtxos")) req
8787
pure (pparams', utxos')
8888

@@ -128,7 +128,7 @@ hprop_rpc_transaction = integrationRetryWorkspace 2 "rpc-tx" $ \tempAbsBasePath'
128128

129129
utxos <-
130130
Rpc.nonStreaming conn (Rpc.rpc @(Rpc.Protobuf UtxoRpc.QueryService "readUtxos")) $
131-
def & #addresses . #items .~ [T.encodeUtf8 addrTxt1]
131+
def & #cardanoAddresses . #items .~ [T.encodeUtf8 addrTxt1]
132132
pure (utxos, submitResponse)
133133

134134
submittedTxIds <- forM (submitResponse ^. #results) $ \res -> do

0 commit comments

Comments
 (0)