Skip to content

Commit 4eff0f3

Browse files
authored
Update and fix formal-ledger-specifications (#5189)
1 parent 1b1d6cc commit 4eff0f3

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
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: 28d3fd4876bbfa347f5eb89a6b70ee15dc9b327f
19+
tag: d419ed67d4e5a5aa7b26f22785dd7b64f08de37a
2020

2121
source-repository-package
2222
type: git

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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ import Cardano.Ledger.Allegra.Scripts (
4343
import Cardano.Ledger.Alonzo (AlonzoTxAuxData, MaryValue)
4444
import Cardano.Ledger.Alonzo.PParams (OrdExUnits (OrdExUnits))
4545
import Cardano.Ledger.Alonzo.Scripts (AlonzoPlutusPurpose (..))
46-
import Cardano.Ledger.Alonzo.TxWits (AlonzoTxWits (..), Redeemers (..), TxDats (..))
46+
import Cardano.Ledger.Alonzo.TxWits (AlonzoTxWits (..), Redeemers (..), TxDats (..), unTxDats)
4747
import Cardano.Ledger.Babbage.TxOut (BabbageTxOut (..))
4848
import Cardano.Ledger.BaseTypes
4949
import Cardano.Ledger.Binary (Sized (..))
@@ -464,9 +464,9 @@ instance SpecTranslate ctx (WitVKey k) where
464464
toSpecRep (WitVKey vk sk) = toSpecRep (vk, sk)
465465

466466
instance Era era => SpecTranslate ctx (TxDats era) where
467-
type SpecRep (TxDats era) = Agda.HSMap Agda.DataHash Agda.Datum
467+
type SpecRep (TxDats era) = Agda.HSSet Agda.Datum
468468

469-
toSpecRep (TxDats x) = toSpecRep x
469+
toSpecRep = fmap Agda.MkHSSet . traverse (toSpecRep . snd) . Map.toList . unTxDats
470470

471471
instance
472472
( SpecTranslate ctx k

0 commit comments

Comments
 (0)