Skip to content

Commit ddec16c

Browse files
committed
Review remarks
1 parent 8966469 commit ddec16c

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

  • cardano-rpc
    • src/Cardano/Rpc/Server/Internal/UtxoRpc/Type
    • test/cardano-rpc-test/Test/Cardano/Rpc

cardano-rpc/src/Cardano/Rpc/Server/Internal/UtxoRpc/Type/Tx.hs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -217,12 +217,13 @@ txToUtxoRpcTx ledgerTx = anyEraTxConstraints sbe $ do
217217
ShelleyBasedEraBabbage -> []
218218
ShelleyBasedEraConway -> conwayOnwardsProposals
219219
ShelleyBasedEraDijkstra -> conwayOnwardsProposals
220-
conwayOnwardsProposals
221-
:: L.ConwayEraPParams (ShelleyLedgerEra era)
222-
=> [Proto UtxoRpc.GovernanceActionProposal]
223-
conwayOnwardsProposals =
224-
maybe [] (map proposalProcedureToUtxoRpcProposal . toList) $
225-
body ^. L.proposalProceduresTxBodyG
220+
where
221+
conwayOnwardsProposals
222+
:: L.ConwayEraPParams (ShelleyLedgerEra era)
223+
=> [Proto UtxoRpc.GovernanceActionProposal]
224+
conwayOnwardsProposals =
225+
maybe [] (map proposalProcedureToUtxoRpcProposal . toList) $
226+
body ^. L.proposalProceduresTxBodyG
226227
defMessage
227228
& U5c.hash .~ serialiseToRawBytes (fromShelleyTxId (L.txIdTx ledgerTx))
228229
& U5c.inputs .~ inputs

cardano-rpc/test/cardano-rpc-test/Test/Cardano/Rpc/FetchBlockTx.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ import Test.Tasty.Hedgehog (testPropertyNamed)
5353
-- use it, so a new stable era only needs updating here; the era-specific
5454
-- constructors in those properties then fail to compile until adjusted.
5555
latestStableEra :: Exp.Era ConwayEra
56-
latestStableEra = Exp.ConwayEra
56+
latestStableEra = Exp.useEra
5757

5858
-- | One-way projection property for 'txToUtxoRpcTx': there is no inverse
5959
-- conversion, so the proto message and the ledger transaction are projected

0 commit comments

Comments
 (0)