Skip to content

Commit 01e8363

Browse files
committed
Update formal-ledger-specifications
1 parent 5c56d03 commit 01e8363

File tree

4 files changed

+7
-13
lines changed

4 files changed

+7
-13
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: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -639,13 +639,10 @@ instance SpecTranslate ctx TxAuxDataHash where
639639
toSpecRep (TxAuxDataHash x) = toSpecRep x
640640

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

646-
instance Inject ConwayTxBodyTransContext Integer where
647-
inject = ctbtcSizeTx
648-
649646
instance Inject ConwayTxBodyTransContext TxId where
650647
inject = ctbtcTxId
651648

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,15 +83,13 @@ instance
8383
toSpecRep = pure . showOpaqueErrorString
8484

8585
instance
86-
( Inject ctx Integer
87-
, Inject ctx TxId
86+
( Inject ctx TxId
8887
) =>
8988
SpecTranslate ctx (TxBody ConwayEra)
9089
where
9190
type SpecRep (TxBody ConwayEra) = Agda.TxBody
9291

9392
toSpecRep txb = do
94-
sizeTx <- askCtx
9593
txId <- askCtx @TxId
9694
Agda.MkTxBody
9795
<$> toSpecRep (txb ^. inputsTxBodyL)
@@ -109,7 +107,6 @@ instance
109107
<*> toSpecRep (txb ^. auxDataHashTxBodyL)
110108
<*> toSpecRep (txb ^. networkIdTxBodyL)
111109
<*> toSpecRep (txb ^. currentTreasuryValueTxBodyL)
112-
<*> pure sizeTx
113110
<*> toSpecRep txId
114111
<*> toSpecRep (txb ^. collateralInputsTxBodyL)
115112
<*> toSpecRep (txb ^. reqSignerHashesTxBodyL)

0 commit comments

Comments
 (0)