Skip to content

Commit a2407e0

Browse files
authored
Update evaluating-plinth.md: add version info and clarify dependencies for CompiledCode evaluation (#7230)
1 parent 93010fe commit a2407e0

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

doc/docusaurus/docs/using-plinth/evaluating-plinth.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ sidebar_position: 12
88

99
However, it is also possible to evaluate `CompiledCode` without running a node. The Plutus evaluator, called the CEK Machine, can be used independently of the Cardano node for testing and troubleshooting. By evaluating Plinth programs locally, developers can not only obtain the immediate result of the code but also access the traces emitted during evaluation and the consumed execution budget.
1010

11+
:::info Version Information
12+
This functionality was released in version 1.47.
13+
:::
14+
1115
Let's consider the following example Plinth program:
1216
<LiteralInclude
1317
file="Example/Evaluation/Main.hs"
@@ -27,9 +31,12 @@ To compile it, use the `compile` function as described earlier in the [Compiling
2731
start="-- BEGIN CompiledCode"
2832
end="-- END CompiledCode" />
2933

30-
To evaluate `compiledCode`, add the `plutus-tx` and `plutus-ledger-api` dependencies to your cabal file:
34+
To evaluate `compiledCode`, add the following dependencies to your cabal file:
3135
```cabal
32-
build-depends: plutus-tx, plutus-ledger-api
36+
build-depends:
37+
plutus-tx,
38+
plutus-tx:plutus-tx-testlib,
39+
plutus-ledger-api
3340
```
3441

3542
This allows you to import the necessary functionality:

0 commit comments

Comments
 (0)