Skip to content

Commit bffd85d

Browse files
authored
Add titles to code blocks
Updated code blocks in CLI documentation to include titles for better clarity.
1 parent c80a180 commit bffd85d

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

docs/getting-started/cli.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ elements-cli --version
3939

4040
### 1. Create Contract
4141

42-
**File: `always_true.simf`**
43-
```rust
42+
```rust title="always_true.simf"
4443
fn main() {
4544
// Contract that always succeeds
4645
}
@@ -97,8 +96,8 @@ curl "https://blockstream.info/liquidtestnet/api/address/tex1p5m8j7r2qf9h8xvua5j
9796

9897
**For contracts needing witness data:**
9998

100-
**File: `witness.wit`**
101-
```json
99+
100+
```json title="witness.wit"
102101
{
103102
"signature": {
104103
"value": "0x<64_byte_hex>",
@@ -155,8 +154,7 @@ curl "https://blockstream.info/liquidtestnet/api/tx/xyz789abc.../status"
155154

156155
### Create P2PK Contract
157156

158-
**File: `p2pk.simf`**
159-
```rust
157+
```rust title="p2pk.simf"
160158
fn main() {
161159
let pk: Pubkey = 0x0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798;
162160
let msg: u256 = jet::sig_all_hash();
@@ -258,8 +256,7 @@ You would need to:
258256

259257
### Create Witness File
260258

261-
**File: `witness.wit`**
262-
```json
259+
```json title="witness.wit"
263260
{
264261
"signature": {
265262
"value": "0x<your_64_byte_signature_here>",

0 commit comments

Comments
 (0)