Skip to content

Commit ebf5f8b

Browse files
committed
Update for cardano-api#945
1 parent 7f1c94d commit ebf5f8b

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

cardano-testnet/src/Parsers/Cardano.hs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import Cardano.Api (AnyShelleyBasedEra (..))
1010
import Cardano.Api (AnyShelleyBasedEra(..))
1111
import Cardano.CLI.EraBased.Common.Option (bounded, command')
1212
import Cardano.Api (AnyShelleyBasedEra (..), EraInEon (..), prettyShow)
13+
import Cardano.Api.Era (AnyShelleyBasedEra (..))
14+
import Cardano.Api.Pretty
1315

14-
import Cardano.CLI.Environment
15-
import Cardano.CLI.EraBased.Common.Option (bounded, command')
1616
import Cardano.CLI.EraBased.Common.Option hiding (pNetworkId)
1717

1818
import Prelude
@@ -84,10 +84,6 @@ pCardanoTestnetCliOptions = CardanoTestnetOptions
8484
<> OA.help "[EXPERIMENTAL] Enable gRPC endpoint on all of testnet nodes. The listening socket file will be the same directory as node's N2C socket."
8585
<> OA.showDefault
8686
)
87-
where
88-
pAnyShelleyBasedEra' :: Parser AnyShelleyBasedEra
89-
pAnyShelleyBasedEra' =
90-
pAnyShelleyBasedEra envCli <&> (\(EraInEon x) -> AnyShelleyBasedEra x)
9187

9288
pTestnetNodeOptions :: Parser [NodeOption]
9389
pTestnetNodeOptions =

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ hprop_rpc_query_pparams = integrationRetryWorkspace 2 "rpc-query-pparams" $ \tem
129129
M.lookup L.PlutusV1 pparamsCostModels === chainParams ^. #costModels . #plutusV1 . #values . to Just
130130
M.lookup L.PlutusV2 pparamsCostModels === chainParams ^. #costModels . #plutusV2 . #values . to Just
131131
M.lookup L.PlutusV3 pparamsCostModels === chainParams ^. #costModels . #plutusV3 . #values . to Just
132+
M.lookup L.PlutusV4 pparamsCostModels === chainParams ^. #costModels . #plutusV4 . #values . to Just
132133
pparams ^. L.ppPricesL . to L.prSteps . to L.unboundRational === chainParams ^. #prices . #steps . to inject
133134
pparams ^. L.ppPricesL . to L.prMem . to L.unboundRational === chainParams ^. #prices . #memory . to inject
134135
pparams ^. L.ppMaxTxExUnitsL === chainParams ^. #maxExecutionUnitsPerTransaction . to inject

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)