Skip to content

Commit 82c4848

Browse files
committed
Fix Alonzo imp tests
1 parent 36d94f9 commit 82c4848

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

eras/alonzo/impl/testlib/Test/Cardano/Ledger/Alonzo/Imp/UtxowSpec/Invalid.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ spec = describe "Invalid transactions" $ do
156156
then submitPhase2Invalid_ tx
157157
else submitFailingTx tx [injectFailure $ UnspendableUTxONoDatumHash [txIn]]
158158

159-
it "No ExtraRedeemers on same script certificates" $ do
159+
it "No ExtraRedeemers on same script certificates" . whenMajorVersionAtMost @11 $ do
160160
Positive n <- arbitrary
161161
replicateM_ n $ freshKeyHash >>= registerPool
162162
pools <- getsNES $ nesEsL . epochStatePoolParamsL
@@ -252,7 +252,7 @@ spec = describe "Invalid transactions" $ do
252252
it "Spending" $
253253
testPurpose (mkSpendingPurpose $ AsIx 99)
254254

255-
it "Multiple equal plutus-locked certs" $ do
255+
it "Multiple equal plutus-locked certs" . whenMajorVersionAtMost @11 $ do
256256
let scriptHash = alwaysSucceedsWithDatumHash
257257
Positive n <- arbitrary
258258
replicateM_ n $ freshKeyHash >>= registerPool

eras/alonzo/impl/testlib/Test/Cardano/Ledger/Alonzo/Imp/UtxowSpec/Valid.hs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ spec = describe "Valid transactions" $ do
8888
mkBasicTx $
8989
mkBasicTxBody & inputsTxBodyL .~ [txIn]
9090

91-
it "Validating CERT script" $ do
91+
it "Validating CERT script" . whenMajorVersionAtMost @11 $ do
9292
txIn <- produceScript alwaysSucceedsWithDatumHash
9393
let txCert = RegTxCert $ ScriptHashObj alwaysSucceedsNoDatumHash
9494
submitTx_ $
@@ -97,7 +97,7 @@ spec = describe "Valid transactions" $ do
9797
& inputsTxBodyL .~ [txIn]
9898
& certsTxBodyL .~ [txCert]
9999

100-
it "Not validating CERT script" $ do
100+
it "Not validating CERT script" . whenMajorVersionAtMost @11 $ do
101101
txIn <- produceScript alwaysFailsWithDatumHash
102102
let txCert = RegTxCert $ ScriptHashObj alwaysSucceedsNoDatumHash
103103
submitPhase2Invalid_ $
@@ -106,13 +106,13 @@ spec = describe "Valid transactions" $ do
106106
& inputsTxBodyL .~ [txIn]
107107
& certsTxBodyL .~ [txCert]
108108

109-
it "Validating WITHDRAWAL script" $ do
109+
it "Validating WITHDRAWAL script" . whenMajorVersionAtMost @11 $ do
110110
account <- registerStakeCredential $ ScriptHashObj alwaysSucceedsNoDatumHash
111111
submitTx_ $
112112
mkBasicTx $
113113
mkBasicTxBody & withdrawalsTxBodyL .~ Withdrawals [(account, mempty)]
114114

115-
it "Not validating WITHDRAWAL script" $ do
115+
it "Not validating WITHDRAWAL script" . whenMajorVersionAtMost @11 $ do
116116
account <- registerStakeCredential $ ScriptHashObj alwaysFailsNoDatumHash
117117
submitPhase2Invalid_ $
118118
mkBasicTx $
@@ -126,7 +126,7 @@ spec = describe "Valid transactions" $ do
126126

127127
-- Process a transaction with a succeeding script in every place possible,
128128
-- and also with succeeding timelock scripts.
129-
it "Validating scripts everywhere" $ do
129+
it "Validating scripts everywhere" . whenMajorVersionAtMost @11 $ do
130130
slotNo <- use impLastTickG
131131
let
132132
timelockScriptHash i = do
@@ -183,7 +183,7 @@ spec = describe "Valid transactions" $ do
183183
& witsTxL . datsTxWitsL . unTxDatsL %~ Map.insert datumHash datum
184184
submitTx_ tx
185185

186-
it "Multiple identical certificates" $ do
186+
it "Multiple identical certificates" . whenMajorVersionAtMost @11 $ do
187187
let scriptHash = alwaysSucceedsNoDatumHash
188188
void . registerStakeCredential $ ScriptHashObj scriptHash
189189
let tx =

0 commit comments

Comments
 (0)