Skip to content

Commit e5b0206

Browse files
committed
Update quickstart for upstream package releases
1 parent ac30ebd commit e5b0206

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/assets/p2ms-demo.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ simc "$PROGRAM_SOURCE"
121121
pause
122122

123123
# Extract the compiled program from the output of that command
124-
COMPILED_PROGRAM=$(simc "$PROGRAM_SOURCE" | tail -1)
124+
COMPILED_PROGRAM=$(simc "$PROGRAM_SOURCE" | sed '1d; 3,$d')
125125

126126
echo hal-simplicity simplicity info "$COMPILED_PROGRAM"
127127
hal-simplicity simplicity info "$COMPILED_PROGRAM" | jq

docs/getting-started/quickstart.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ You can then install these tools with the commands
1010

1111
```bash
1212
cargo install simplicityhl
13-
cargo install --git https://github.com/BlockstreamResearch/hal-simplicity
13+
cargo install hal-simplicity
1414
```
1515

1616
We also need to check out a copy of the `SimplicityHL` repository in
@@ -88,10 +88,10 @@ simc $PROGRAM_SOURCE
8888

8989
The compiled version of the program is the last line of the `simc` output. It is a single long line of base64-encoded Simplicity program data, probably beginning `5lk2l5`...
9090

91-
We will save the compiled program into a shell variable by extracting the last line of the compiler output.
91+
We will save the compiled program into a shell variable by extracting the second line of the compiler output.
9292

9393
```bash
94-
COMPILED_PROGRAM=$(simc $PROGRAM_SOURCE | tail -1)
94+
COMPILED_PROGRAM=$(simc $PROGRAM_SOURCE | sed '1d; 3,$d')
9595
```
9696

9797
You can view some data about the compiled program by running `hal-simplicity simplicity info` on it.

0 commit comments

Comments
 (0)