Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docs/tutorials/compile-the-guardrail-script.mdx #165

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading