Skip to content

Commit

Permalink
Update docs/tutorials/compile-the-guardrail-script.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
bezirg committed Sep 11, 2024
1 parent c036d79 commit 1258850
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions docs/tutorials/compile-the-guardrail-script.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,22 @@ To compile the current version of the guardrail script yourself, you first have
git clone https://github.com/IntersectMBO/plutus.git
cd plutus
```
Next we check out the version 1.31.0.0 of plutus and enter a nix development shell via
Next we check out the version 1.34.0.0 of plutus and enter a nix development shell via
```bash
git checkout 1.31.0.0
git checkout 1.34.0.0
nix develop
```
We then create a file `cabal.project.local` to override some dependencies as a hotfix (there is a circular dependency otherwise).
The executable `create-json-envelope` can be used to compile the guardrail script.
Unfortunately, building this executable is disabled by default (caused by a circular dependency).
To re-enable it you have to uncomment the following lines in `cabal.project`:
```cabal
cat <<EOF > cabal.project.local
allow-newer: *:plutus-ledger-api
allow-newer: *:prettyprinter-configurable
EOF
-- package cardano-constitution
-- flags: +force-build
-- allow-newer: *:plutus-ledger-api
-- allow-newer: *:prettyprinter-configurable
-- allow-older: *:nothunks
```
Next, we open in a text editor the file `cardano-constitution/cardano-constitution.cabal` and delete line 134 that reads `buildable: False` via
```bash
sed -i '134d' cardano-constitution/cardano-constitution.cabal
```
Next, we can build the script via
Next, we can compile the script via
```bash
cabal update
cabal run cardano-constitution:create-json-envelope -- guardrail.plutus
Expand Down

0 comments on commit 1258850

Please sign in to comment.