Skip to content

Commit aaf4f14

Browse files
committed
Adjust tests
1 parent ac9e8a7 commit aaf4f14

File tree

2 files changed

+6
-5
lines changed
  • eras/conway/impl

2 files changed

+6
-5
lines changed

eras/conway/impl/src/Cardano/Ledger/Conway/TxCert.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{-# LANGUAGE BangPatterns #-}
2+
{-# LANGUAGE CPP #-}
23
{-# LANGUAGE DataKinds #-}
34
{-# LANGUAGE DeriveGeneric #-}
45
{-# LANGUAGE FlexibleContexts #-}
@@ -14,6 +15,9 @@
1415
{-# LANGUAGE UndecidableSuperClasses #-}
1516
{-# LANGUAGE ViewPatterns #-}
1617
{-# OPTIONS_GHC -Wno-orphans #-}
18+
#if __GLASGOW_HASKELL__ >= 908
19+
{-# OPTIONS_GHC -Wno-x-unsafe-ledger-internal #-}
20+
#endif
1721

1822
module Cardano.Ledger.Conway.TxCert (
1923
ConwayTxCert (..),

eras/conway/impl/testlib/Test/Cardano/Ledger/Conway/Spec.hs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ import Cardano.Ledger.Babbage.Rules (BabbageUtxoPredFailure, BabbageUtxowPredFai
1818
import Cardano.Ledger.Babbage.TxInfo (BabbageContextError)
1919
import Cardano.Ledger.BaseTypes (Inject)
2020
import Cardano.Ledger.Binary (DecCBOR)
21+
import Cardano.Ledger.Conway (ConwayEra)
2122
import Cardano.Ledger.Conway.Core (
2223
AlonzoEraScript (..),
2324
AsIx,
2425
EraRule,
2526
EraTx (..),
2627
EraTxBody (..),
27-
EraTxCert (..),
2828
EraTxWits (..),
2929
InjectRuleEvent,
3030
InjectRuleFailure,
@@ -42,7 +42,6 @@ import Cardano.Ledger.Conway.Rules (
4242
ConwayNewEpochEvent,
4343
ConwayUtxoPredFailure,
4444
)
45-
import Cardano.Ledger.Conway.TxCert (ConwayTxCert)
4645
import Cardano.Ledger.Conway.TxInfo (ConwayContextError)
4746
import Cardano.Ledger.Plutus (Language (..))
4847
import Cardano.Ledger.Shelley.API (ApplyTx)
@@ -73,7 +72,6 @@ import Test.Cardano.Ledger.Core.JSON (roundTripJsonEraSpec)
7372
spec ::
7473
forall era.
7574
( EraPlutusTxInfo PlutusV2 era
76-
, EraPlutusTxInfo PlutusV3 era
7775
, RuleListEra era
7876
, ConwayEraImp era
7977
, ApplyTx era
@@ -108,7 +106,6 @@ spec ::
108106
, ToExpr (Event (EraRule "ENACT" era))
109107
, Eq (Event (EraRule "ENACT" era))
110108
, Typeable (Event (EraRule "ENACT" era))
111-
, TxCert era ~ ConwayTxCert era
112109
) =>
113110
Spec
114111
spec =
@@ -127,4 +124,4 @@ spec =
127124
describe "TxWits" $ do
128125
TxWitsSpec.spec @era
129126
Regression.spec @era
130-
TxInfo.spec @era
127+
TxInfo.spec @ConwayEra

0 commit comments

Comments
 (0)