@@ -90,6 +90,21 @@ spec = describe "Valid transactions" $ do
9090 mkBasicTx $
9191 mkBasicTxBody & inputsTxBodyL .~ [txIn]
9292
93+ it " Validating CERT script" $ do
94+ txIn <- produceScript alwaysSucceedsWithDatumHash
95+ txCert <- genRegTxCert $ ScriptHashObj alwaysSucceedsNoDatumHash
96+ submitTx_ $
97+ mkBasicTx $
98+ mkBasicTxBody
99+ & inputsTxBodyL .~ [txIn]
100+ & certsTxBodyL .~ [txCert]
101+
102+ it " Validating WITHDRAWAL script" $ do
103+ account <- registerStakeCredential $ ScriptHashObj alwaysSucceedsNoDatumHash
104+ submitTx_ $
105+ mkBasicTx $
106+ mkBasicTxBody & withdrawalsTxBodyL .~ Withdrawals [(account, mempty )]
107+
93108 it " Validating MINT script" $ do
94109 submitTx_ =<< mkTokenMintingTx alwaysSucceedsNoDatumHash
95110
@@ -135,15 +150,6 @@ alonzoEraSpecificSpec = do
135150 alwaysFailsWithDatumHash = hashPlutusScript $ alwaysFailsWithDatum slang :: ScriptHash
136151 alwaysFailsNoDatumHash = hashPlutusScript $ alwaysFailsNoDatum slang :: ScriptHash
137152
138- it " Validating CERT script" $ do
139- txIn <- produceScript alwaysSucceedsWithDatumHash
140- let txCert = RegTxCert $ ScriptHashObj alwaysSucceedsNoDatumHash
141- submitTx_ $
142- mkBasicTx $
143- mkBasicTxBody
144- & inputsTxBodyL .~ [txIn]
145- & certsTxBodyL .~ [txCert]
146-
147153 it " Not validating CERT script" $ do
148154 txIn <- produceScript alwaysFailsWithDatumHash
149155 let txCert = RegTxCert $ ScriptHashObj alwaysSucceedsNoDatumHash
@@ -153,12 +159,6 @@ alonzoEraSpecificSpec = do
153159 & inputsTxBodyL .~ [txIn]
154160 & certsTxBodyL .~ [txCert]
155161
156- it " Validating WITHDRAWAL script" $ do
157- account <- registerStakeCredential $ ScriptHashObj alwaysSucceedsNoDatumHash
158- submitTx_ $
159- mkBasicTx $
160- mkBasicTxBody & withdrawalsTxBodyL .~ Withdrawals [(account, mempty )]
161-
162162 it " Not validating WITHDRAWAL script" $ do
163163 account <- registerStakeCredentialNoDeposit $ ScriptHashObj alwaysFailsNoDatumHash
164164 submitPhase2Invalid_ $
0 commit comments