Skip to content

Commit 66c7bd1

Browse files
Update Workaround for Older Runtimes
1 parent e097355 commit 66c7bd1

File tree

2 files changed

+4
-50
lines changed

2 files changed

+4
-50
lines changed

llms.txt

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -28243,11 +28243,8 @@ This is especially useful when dealing with:
2824328243
* This `forwarded_id` is computed as:
2824428244

2824528245
```rust
28246-
use sp_core::H256;
28247-
use std::str::FromStr;
28248-
28249-
fn forward_id_for(original_id: &XcmHash) -> XcmHash {
28250-
(b"forward_id_for", original_id).using_encoded(sp_io::hashing::blake2_256)
28246+
fn forward_id_for(original_id: &XcmHash) -> XcmHash {
28247+
(b"forward_id_for", original_id).using_encoded(sp_io::hashing::blake2_256)
2825128248
}
2825228249
```
2825328250

@@ -28294,26 +28291,6 @@ if (forwardedIdHex === expectedForwardedId) {
2829428291
* ⚠️ **Old runtimes**:
2829528292
`message_id == blake2_256("forward_id_for" + original_id)`
2829628293

28297-
## Additional Samples
28298-
28299-
After learning the concepts above, you can explore other scenarios:
28300-
28301-
### `multiple-hops-sample-01.ts`
28302-
28303-
Transfers assets across multiple chains with auto-generated `SetTopic`.
28304-
28305-
### `multiple-hops-sample-02.ts`
28306-
28307-
Transfers assets and explicitly sets a known `SetTopic` for full tracking across multiple hops.
28308-
28309-
### `hydration-sample1.ts`
28310-
28311-
Simulates a swap using DOT on Hydration, then returns funds back to the origin.
28312-
28313-
→ Run each script using `npx tsx <script>.ts`
28314-
28315-
Each sample includes inline comments and tracking info relevant to its use case.
28316-
2831728294
## Where to Go Next
2831828295

2831928296
<div class="grid cards" markdown>

tutorials/interoperability/xcm-observability.md

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,8 @@ This is especially useful when dealing with:
179179
* This `forwarded_id` is computed as:
180180

181181
```rust
182-
use sp_core::H256;
183-
use std::str::FromStr;
184-
185-
fn forward_id_for(original_id: &XcmHash) -> XcmHash {
186-
(b"forward_id_for", original_id).using_encoded(sp_io::hashing::blake2_256)
182+
fn forward_id_for(original_id: &XcmHash) -> XcmHash {
183+
(b"forward_id_for", original_id).using_encoded(sp_io::hashing::blake2_256)
187184
}
188185
```
189186

@@ -199,26 +196,6 @@ To reliably trace messages across **mixed-version chains**, indexers and tools s
199196
* ⚠️ **Old runtimes**:
200197
`message_id == blake2_256("forward_id_for" + original_id)`
201198

202-
## Additional Samples
203-
204-
After learning the concepts above, you can explore other scenarios:
205-
206-
### `multiple-hops-sample-01.ts`
207-
208-
Transfers assets across multiple chains with auto-generated `SetTopic`.
209-
210-
### `multiple-hops-sample-02.ts`
211-
212-
Transfers assets and explicitly sets a known `SetTopic` for full tracking across multiple hops.
213-
214-
### `hydration-sample1.ts`
215-
216-
Simulates a swap using DOT on Hydration, then returns funds back to the origin.
217-
218-
→ Run each script using `npx tsx <script>.ts`
219-
220-
Each sample includes inline comments and tracking info relevant to its use case.
221-
222199
## Where to Go Next
223200

224201
<div class="grid cards" markdown>

0 commit comments

Comments
 (0)