Skip to content

Commit

Permalink
Tidy up Test.Cardano.Ledger.Alonzo.ImpTest
Browse files Browse the repository at this point in the history
  • Loading branch information
neilmayhew committed Apr 30, 2024
1 parent be59c23 commit 324a59d
Showing 1 changed file with 11 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,8 @@ import Test.Cardano.Ledger.Alonzo.ImpTest (
ImpTestState,
ShelleyEraImp,
getsNES,
impAnn,
submitTxAnn,
submitTxAnn_,
submitTx_,
)
import Test.Cardano.Ledger.Common
import Test.Cardano.Ledger.Core.Utils (txInAt)
Expand Down Expand Up @@ -72,15 +70,14 @@ spec = describe "UTXOS" $ do
it "Invalid plutus script fails in phase 2" $ do
txIn0 <- submitProducingTx
exUnits <- getsNES $ nesEsL . curPParamsEpochStateL . ppMaxTxExUnitsL
impAnn "Submitting consuming transaction" $
submitTx_
( mkBasicTx mkBasicTxBody
& bodyTxL . inputsTxBodyL .~ Set.singleton txIn0
& isValidTxL .~ IsValid False
& witsTxL . rdmrsTxWitsL
.~ Redeemers
( Map.singleton
(mkSpendingPurpose $ AsIx 0)
(Data $ P.I 32, exUnits)
)
)
submitTxAnn_ "Submitting consuming transaction" $
( mkBasicTx mkBasicTxBody
& bodyTxL . inputsTxBodyL .~ Set.singleton txIn0
& isValidTxL .~ IsValid False
& witsTxL . rdmrsTxWitsL
.~ Redeemers
( Map.singleton
(mkSpendingPurpose $ AsIx 0)
(Data $ P.I 32, exUnits)
)
)

0 comments on commit 324a59d

Please sign in to comment.