Skip to content

Commit 1a163db

Browse files
authored
Update formal-ledger-specifications
1 parent b07ea85 commit 1a163db

File tree

4 files changed

+8
-15
lines changed

4 files changed

+8
-15
lines changed

cabal.project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ source-repository-package
1616
subdir: hs
1717
-- !WARNING!:
1818
-- MAKE SURE THIS POINTS TO A COMMIT IN `*-artifacts` BEFORE MERGE!
19-
tag: da80e1780155482bc949605049ff0653edd4f2d2
19+
tag: 28d3fd4876bbfa347f5eb89a6b70ee15dc9b327f
2020

2121
-- NOTE: If you would like to update the above,
2222
-- see CONTRIBUTING.md#to-update-the-referenced-agda-ledger-spec

flake.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -639,13 +639,9 @@ instance SpecTranslate ctx TxAuxDataHash where
639639
toSpecRep (TxAuxDataHash x) = toSpecRep x
640640

641641
data ConwayTxBodyTransContext = ConwayTxBodyTransContext
642-
{ ctbtcSizeTx :: !Integer
643-
, ctbtcTxId :: !TxId
642+
{ ctbtcTxId :: !TxId
644643
}
645644

646-
instance Inject ConwayTxBodyTransContext Integer where
647-
inject = ctbtcSizeTx
648-
649645
instance Inject ConwayTxBodyTransContext TxId where
650646
inject = ctbtcTxId
651647

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,15 +83,12 @@ instance
8383
toSpecRep = pure . showOpaqueErrorString
8484

8585
instance
86-
( Inject ctx Integer
87-
, Inject ctx TxId
88-
) =>
86+
Inject ctx TxId =>
8987
SpecTranslate ctx (TxBody ConwayEra)
9088
where
9189
type SpecRep (TxBody ConwayEra) = Agda.TxBody
9290

9391
toSpecRep txb = do
94-
sizeTx <- askCtx
9592
txId <- askCtx @TxId
9693
Agda.MkTxBody
9794
<$> toSpecRep (txb ^. inputsTxBodyL)
@@ -109,7 +106,6 @@ instance
109106
<*> toSpecRep (txb ^. auxDataHashTxBodyL)
110107
<*> toSpecRep (txb ^. networkIdTxBodyL)
111108
<*> toSpecRep (txb ^. currentTreasuryValueTxBodyL)
112-
<*> pure sizeTx
113109
<*> toSpecRep txId
114110
<*> toSpecRep (txb ^. collateralInputsTxBodyL)
115111
<*> toSpecRep (txb ^. reqSignerHashesTxBodyL)
@@ -121,8 +117,9 @@ instance SpecTranslate ctx (Tx ConwayEra) where
121117
toSpecRep tx =
122118
Agda.MkTx
123119
<$> withCtx
124-
(ConwayTxBodyTransContext (tx ^. sizeTxF) (txIdTx tx))
120+
(ConwayTxBodyTransContext (txIdTx tx))
125121
(toSpecRep (tx ^. bodyTxL))
126122
<*> toSpecRep (tx ^. witsTxL)
123+
<*> toSpecRep (tx ^. sizeTxF)
127124
<*> toSpecRep (tx ^. isValidTxL)
128125
<*> toSpecRep (tx ^. auxDataTxL)

0 commit comments

Comments
 (0)