Skip to content

Commit 9bc455c

Browse files
Accomodate for costmlds change to a Map in the Ledger spec
1 parent fe0af09 commit 9bc455c

File tree

2 files changed

+3
-3
lines changed
  • libs/cardano-ledger-conformance/src/Test/Cardano/Ledger/Conformance/SpecTranslate

2 files changed

+3
-3
lines changed

libs/cardano-ledger-conformance/src/Test/Cardano/Ledger/Conformance/SpecTranslate/Conway/Base.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ instance
230230
ppPv = (0, 0)
231231
ppMinUTxOValue = 0 -- minUTxOValue has been deprecated and is not supported in Conway
232232
ppCoinsPerUTxOByte <- toSpecRep cppCoinsPerUTxOByte
233-
ppCostmdls <- toSpecRep cppCostModels
233+
ppCostmdlsAssoc <- toSpecRep cppCostModels
234234
ppPrices <- toSpecRep cppPrices
235235
let
236236
pp = PParams cpp

libs/cardano-ledger-conformance/src/Test/Cardano/Ledger/Conformance/SpecTranslate/Core.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,9 @@ instance SpecTranslate ctx ProtVer where
156156
toSpecRep (ProtVer ver minor) = pure (getVersion ver, toInteger minor)
157157

158158
instance SpecTranslate ctx CostModels where
159-
type SpecRep CostModels = ()
159+
type SpecRep CostModels = [((), ())]
160160

161-
toSpecRep _ = pure ()
161+
toSpecRep _ = pure [((), ())]
162162

163163
instance SpecTranslate ctx Prices where
164164
type SpecRep Prices = ()

0 commit comments

Comments
 (0)