Skip to content

Commit 8dfec79

Browse files
authored
Fix remote snippets (#476)
1 parent 0e36347 commit 8dfec79

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

develop/interoperability/xcm-runtime-apis.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ This API can be used independently for dry-running, double-checking, or testing.
3636
This API allows a dry-run of any extrinsic and obtaining the outcome if it fails or succeeds, as well as the local xcm and remote xcm messages sent to other chains.
3737

3838
```rust
39-
--8<-- 'https://raw.githubusercontent.com/paritytech/polkadot-sdk/refs/heads/stable2412/polkadot/xcm/xcm-runtime-apis/src/dry_run.rs:67:67'
39+
--8<-- 'https://raw.githubusercontent.com/paritytech/polkadot-sdk/refs/tags/{{dependencies.repositories.polkadot_sdk.version}}/polkadot/xcm/xcm-runtime-apis/src/dry_run.rs:67:67'
4040
```
4141

4242
??? interface "Input parameters"
@@ -117,7 +117,7 @@ This API allows a dry-run of any extrinsic and obtaining the outcome if it fails
117117
This API allows the direct dry-run of an xcm message instead of an extrinsic one, checks if it will execute successfully, and determines what other xcm messages will be forwarded to other chains.
118118

119119
```rust
120-
--8<-- 'https://raw.githubusercontent.com/paritytech/polkadot-sdk/refs/heads/stable2412/polkadot/xcm/xcm-runtime-apis/src/dry_run.rs:70:70'
120+
--8<-- 'https://raw.githubusercontent.com/paritytech/polkadot-sdk/refs/tags/{{dependencies.repositories.polkadot_sdk.version}}/polkadot/xcm/xcm-runtime-apis/src/dry_run.rs:70:70'
121121
```
122122

123123
??? interface "Input parameters"
@@ -203,7 +203,7 @@ To use the API effectively, the client must already know the XCM program to be e
203203
Retrieves the list of assets that are acceptable for paying fees when using a specific XCM version
204204

205205
```rust
206-
--8<-- 'https://raw.githubusercontent.com/paritytech/polkadot-sdk/refs/heads/stable2412/polkadot/xcm/xcm-runtime-apis/src/fees.rs:43:43'
206+
--8<-- 'https://raw.githubusercontent.com/paritytech/polkadot-sdk/refs/tags/{{dependencies.repositories.polkadot_sdk.version}}/polkadot/xcm/xcm-runtime-apis/src/fees.rs:43:43'
207207
```
208208

209209
??? interface "Input parameters"
@@ -254,7 +254,7 @@ Retrieves the list of assets that are acceptable for paying fees when using a sp
254254
Calculates the weight required to execute a given XCM message. It is useful for estimating the execution cost of a cross-chain message in the destination chain before sending it.
255255

256256
```rust
257-
--8<-- 'https://raw.githubusercontent.com/paritytech/polkadot-sdk/refs/heads/stable2412/polkadot/xcm/xcm-runtime-apis/src/fees.rs:50:50'
257+
--8<-- 'https://raw.githubusercontent.com/paritytech/polkadot-sdk/refs/tags/{{dependencies.repositories.polkadot_sdk.version}}/polkadot/xcm/xcm-runtime-apis/src/fees.rs:50:50'
258258
```
259259

260260
??? interface "Input parameters"
@@ -321,7 +321,7 @@ Calculates the weight required to execute a given XCM message. It is useful for
321321
Converts a given weight into the corresponding fee for a specified `AssetId`. It allows clients to determine the cost of execution in terms of the desired asset.
322322

323323
```rust
324-
--8<-- 'https://raw.githubusercontent.com/paritytech/polkadot-sdk/refs/heads/stable2412/polkadot/xcm/xcm-runtime-apis/src/fees.rs:58:58'
324+
--8<-- 'https://raw.githubusercontent.com/paritytech/polkadot-sdk/refs/tags/{{dependencies.repositories.polkadot_sdk.version}}/polkadot/xcm/xcm-runtime-apis/src/fees.rs:58:58'
325325
```
326326

327327
??? interface "Input parameters"
@@ -391,7 +391,7 @@ Converts a given weight into the corresponding fee for a specified `AssetId`. It
391391
Retrieves the delivery fees for sending a specific XCM message to a designated destination. The fees are always returned in a specific asset defined by the destination chain.
392392

393393
```rust
394-
--8<-- 'https://raw.githubusercontent.com/paritytech/polkadot-sdk/refs/heads/stable2412/polkadot/xcm/xcm-runtime-apis/src/fees.rs:68:68'
394+
--8<-- 'https://raw.githubusercontent.com/paritytech/polkadot-sdk/refs/tags/{{dependencies.repositories.polkadot_sdk.version}}/polkadot/xcm/xcm-runtime-apis/src/fees.rs:68:68'
395395
```
396396

397397
??? interface "Input parameters"

llms.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1129,7 +1129,7 @@ This API can be used independently for dry-running, double-checking, or testing.
11291129
This API allows a dry-run of any extrinsic and obtaining the outcome if it fails or succeeds, as well as the local xcm and remote xcm messages sent to other chains.
11301130

11311131
```rust
1132-
/// Dry run call V2.
1132+
fn dry_run_call(origin: OriginCaller, call: Call) -> Result<CallDryRunEffects<Event>, Error>;
11331133
```
11341134

11351135
??? interface "Input parameters"
@@ -1856,7 +1856,7 @@ client.destroy();
18561856
This API allows the direct dry-run of an xcm message instead of an extrinsic one, checks if it will execute successfully, and determines what other xcm messages will be forwarded to other chains.
18571857

18581858
```rust
1859-
/// Dry run call V1.
1859+
fn dry_run_xcm(origin_location: VersionedLocation, xcm: VersionedXcm<Call>) -> Result<XcmDryRunEffects<Event>, Error>;
18601860
```
18611861

18621862
??? interface "Input parameters"

0 commit comments

Comments
 (0)