Skip to content

Commit d9999ae

Browse files
committed
Fix list item numbering in substreams page
1 parent 2a18984 commit d9999ae

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

website/pages/en/substreams.mdx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@ Substreams is a powerful blockchain indexing technology designed to enhance perf
1414

1515
1. **You write a Rust program, which defines the transformations that you want to apply to the blockchain data.** For example, the following Rust function extracts relevant information from an Ethereum block (number, hash, and parent hash).
1616

17-
```rust
18-
fn get_my_block(blk: Block) -> Result<MyBlock, substreams::errors::Error> {
19-
let header = blk.header.as_ref().unwrap();
20-
21-
Ok(MyBlock {
22-
number: blk.number,
23-
hash: Hex::encode(&blk.hash),
24-
parent_hash: Hex::encode(&header.parent_hash),
25-
})
26-
}
27-
```
17+
```rust
18+
fn get_my_block(blk: Block) -> Result<MyBlock, substreams::errors::Error> {
19+
let header = blk.header.as_ref().unwrap();
20+
21+
Ok(MyBlock {
22+
number: blk.number,
23+
hash: Hex::encode(&blk.hash),
24+
parent_hash: Hex::encode(&header.parent_hash),
25+
})
26+
}
27+
```
2828

2929
2. **You wrap up your Rust program into a WASM module just by running a single CLI command.**
3030

0 commit comments

Comments
 (0)