File tree 2 files changed +9
-2
lines changed
plutus-benchmark/validation/bench
plutus-ledger-api/src/PlutusLedgerApi/Common
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,11 @@ main = benchWith mkDecBM
39
39
! (benchScript :: SerialisedScript ) =
40
40
force (serialiseUPLC $ UPLC. Program () v unsaturated)
41
41
42
+ -- The validation benchmarks were all created from PlutusV1 scripts
43
+ ll = PlutusV1
44
+ pv = ledgerLanguageIntroducedIn ll
45
+
42
46
-- Deserialize using 'FakeNamedDeBruijn' to get the fake names added
43
- in whnf (either throw id . void . deserialiseScript futurePV
44
- ) benchScript
47
+ in flip whnf benchScript $ \ scriptBytes ->
48
+ let scriptForEval = either throw id $ deserialiseScript pv scriptBytes
49
+ in either throw id . void $ mkTermToEvaluate ll pv scriptForEval []
Original file line number Diff line number Diff line change @@ -57,6 +57,8 @@ data EvaluationError =
57
57
deriving stock (Show , Eq )
58
58
makeClassyPrisms ''EvaluationError
59
59
60
+ instance Exception EvaluationError
61
+
60
62
instance AsScriptDecodeError EvaluationError where
61
63
_ScriptDecodeError = _CodecError
62
64
You can’t perform that action at this time.
0 commit comments