Skip to content

Commit a071029

Browse files
authored
Merge pull request #4982 from IntersectMBO/zliu41/v1v2
Use Data-backed api for V1 and V2 scripts
2 parents f685e2e + 4bbb00e commit a071029

File tree

4 files changed

+386
-1547
lines changed
  • eras/conway/impl/testlib/Test/Cardano/Ledger/Conway/Imp
  • libs
    • cardano-ledger-core/testlib/Test/Cardano/Ledger/Plutus
    • plutus-preprocessor/src/Cardano/Ledger/Plutus/Preprocessor/Source

4 files changed

+386
-1547
lines changed

eras/conway/impl/testlib/Test/Cardano/Ledger/Conway/Imp/BbodySpec.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import Lens.Micro ((&), (.~), (^.))
3838
import Lens.Micro.Mtl (use)
3939
import Test.Cardano.Ledger.Babbage.ImpTest
4040
import Test.Cardano.Ledger.Imp.Common
41-
import Test.Cardano.Ledger.Plutus.Examples (alwaysFailsWithDatum)
41+
import Test.Cardano.Ledger.Plutus.Examples (purposeIsWellformedNoDatum)
4242

4343
spec ::
4444
forall era.
@@ -111,7 +111,7 @@ spec = describe "BBODY" $ do
111111

112112
largeScript :: Maybe (Script era)
113113
largeScript = do
114-
script <- mkPlutusScript @era $ alwaysFailsWithDatum SPlutusV2
114+
script <- mkPlutusScript @era $ purposeIsWellformedNoDatum SPlutusV2
115115
pure $ fromPlutusScript script
116116

117117
mkTxWithNScripts :: TxIn -> Script era -> Int -> ImpTestM era (Tx era)

0 commit comments

Comments
 (0)