Skip to content

Commit 681c021

Browse files
committed
fix: wording
1 parent 9c8e3d0 commit 681c021

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

develop/smart-contracts/precompiles/xcm-precompile.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Once connected, you can directly interact with the XCM precompile's functions (`
4747

4848
The `weighMessage` function estimates the computational cost required to execute an XCM message. This is crucial for understanding the resources needed before actually executing or sending a message.
4949

50-
To test this functionality in Remix, you can call `callWeighMessage` with a SCALE encoded XCM message. For example, for testing, you can use the following encoded XCM message:
50+
To test this functionality in Remix, you can call `callWeighMessage` with a SCALE-encoded XCM message. For example, for testing, you can use the following encoded XCM message:
5151

5252
```text title="encoded-xcm-message-example"
5353
0x050c000401000003008c86471301000003008c8647000d010101000000010100368e8759910dab756d344995f1d3c79374ca8f70066d3a709e48029f6bf0ee7e
@@ -61,7 +61,7 @@ This encoded message represents a sequence of XCM instructions:
6161
- **[Buy Execution](https://github.com/polkadot-fellows/xcm-format?tab=readme-ov-file#buyexecution){target=\_blank}**: This instruction purchases execution time on the destination chain using the withdrawn assets, ensuring the message can be processed.
6262
- **[Deposit Asset](https://github.com/polkadot-fellows/xcm-format?tab=readme-ov-file#depositasset){target=\_blank}**: This instruction deposits the remaining assets into a specified account on the destination chain after execution costs have been deducted.
6363

64-
This encoded message is provided as an example. You can craft your own XCM message tailored to your specific use case as needed
64+
This encoded message is provided as an example. You can craft your own XCM message tailored to your specific use case as needed.
6565

6666
The function returns a `Weight` struct containing `refTime` and `proofSize` values, which indicate the estimated computational cost of executing this message. If successful, after calling the `callWeighMessage` function, you should see the `refTime` and `proofSize` of the message:
6767

@@ -83,7 +83,7 @@ To execute a message:
8383
- `message`: The encoded XCM message bytes.
8484
- `weight`: The `Weight` struct returned from `callWeighMessage`.
8585

86-
You can examine the full extrinsic structure for this operation [here](https://dev.papi.how/extrinsics#networkId=localhost&endpoint=wss%3A%2F%2Ftestnet-passet-hub.polkadot.io&data=0x1f03050c000401000003008c86471301000003008c8647000d010101000000010100368e8759910dab756d344995f1d3c79374ca8f70066d3a709e48029f6bf0ee7e0750c61e2901daad0600).
86+
You can examine the complete extrinsic structure for this operation [here](https://dev.papi.how/extrinsics#networkId=localhost&endpoint=wss%3A%2F%2Ftestnet-passet-hub.polkadot.io&data=0x1f03050c000401000003008c86471301000003008c8647000d010101000000010100368e8759910dab756d344995f1d3c79374ca8f70066d3a709e48029f6bf0ee7e0750c61e2901daad0600){target=\_blank}.
8787

8888
5. Click on the **Transact** button to execute the xcm message:
8989

@@ -93,7 +93,7 @@ If successful, you will see the following output in the Remix terminal:
9393

9494
![](/images/develop/smart-contracts/precompiles/xcm-precompile/xcm-precompile-07.webp)
9595

96-
Also, you can verify that the execution of this specific message succeeded by checking that the beneficiary account of the xcm message has received the funds accordingly.
96+
Additionally, you can verify that the execution of this specific message was successful by checking that the beneficiary account associated with the xcm message has received the funds accordingly.
9797

9898
### Send a Message
9999

@@ -111,7 +111,7 @@ Unlike `execute`, the `send` function doesn't require a weight parameter since t
111111

112112
## Cross Contract Calls
113113

114-
Beyond direct interaction and wrapper contracts, you can integrate XCM functionality directly into your existing smart contracts by inheriting from or importing the `IXcm` interface. This approach allows you to embed cross-chain capabilities seamlessly into your application logic.
114+
Beyond direct interaction and wrapper contracts, you can integrate XCM functionality directly into your existing smart contracts by inheriting from or importing the `IXcm` interface. This approach enables you to seamlessly embed cross-chain capabilities into your application logic.
115115

116116
Whether you're building DeFi protocols, governance systems, or any application requiring cross-chain coordination, you can incorporate XCM calls directly within your contract's functions.
117117

llms.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12556,7 +12556,7 @@ Once connected, you can directly interact with the XCM precompile's functions (`
1255612556

1255712557
The `weighMessage` function estimates the computational cost required to execute an XCM message. This is crucial for understanding the resources needed before actually executing or sending a message.
1255812558

12559-
To test this functionality in Remix, you can call `callWeighMessage` with a SCALE encoded XCM message. For example, for testing, you can use the following encoded XCM message:
12559+
To test this functionality in Remix, you can call `callWeighMessage` with a SCALE-encoded XCM message. For example, for testing, you can use the following encoded XCM message:
1256012560

1256112561
```text title="encoded-xcm-message-example"
1256212562
0x050c000401000003008c86471301000003008c8647000d010101000000010100368e8759910dab756d344995f1d3c79374ca8f70066d3a709e48029f6bf0ee7e
@@ -12570,7 +12570,7 @@ This encoded message represents a sequence of XCM instructions:
1257012570
- **[Buy Execution](https://github.com/polkadot-fellows/xcm-format?tab=readme-ov-file#buyexecution){target=\_blank}**: This instruction purchases execution time on the destination chain using the withdrawn assets, ensuring the message can be processed.
1257112571
- **[Deposit Asset](https://github.com/polkadot-fellows/xcm-format?tab=readme-ov-file#depositasset){target=\_blank}**: This instruction deposits the remaining assets into a specified account on the destination chain after execution costs have been deducted.
1257212572

12573-
This encoded message is provided as an example. You can craft your own XCM message tailored to your specific use case as needed
12573+
This encoded message is provided as an example. You can craft your own XCM message tailored to your specific use case as needed.
1257412574

1257512575
The function returns a `Weight` struct containing `refTime` and `proofSize` values, which indicate the estimated computational cost of executing this message. If successful, after calling the `callWeighMessage` function, you should see the `refTime` and `proofSize` of the message:
1257612576

@@ -12592,7 +12592,7 @@ To execute a message:
1259212592
- `message`: The encoded XCM message bytes.
1259312593
- `weight`: The `Weight` struct returned from `callWeighMessage`.
1259412594

12595-
You can examine the full extrinsic structure for this operation [here](https://dev.papi.how/extrinsics#networkId=localhost&endpoint=wss%3A%2F%2Ftestnet-passet-hub.polkadot.io&data=0x1f03050c000401000003008c86471301000003008c8647000d010101000000010100368e8759910dab756d344995f1d3c79374ca8f70066d3a709e48029f6bf0ee7e0750c61e2901daad0600).
12595+
You can examine the complete extrinsic structure for this operation [here](https://dev.papi.how/extrinsics#networkId=localhost&endpoint=wss%3A%2F%2Ftestnet-passet-hub.polkadot.io&data=0x1f03050c000401000003008c86471301000003008c8647000d010101000000010100368e8759910dab756d344995f1d3c79374ca8f70066d3a709e48029f6bf0ee7e0750c61e2901daad0600){target=\_blank}.
1259612596

1259712597
5. Click on the **Transact** button to execute the xcm message:
1259812598

@@ -12602,7 +12602,7 @@ If successful, you will see the following output in the Remix terminal:
1260212602

1260312603
![](/images/develop/smart-contracts/precompiles/xcm-precompile/xcm-precompile-07.webp)
1260412604

12605-
Also, you can verify that the execution of this specific message succeeded by checking that the beneficiary account of the xcm message has received the funds accordingly.
12605+
Additionally, you can verify that the execution of this specific message was successful by checking that the beneficiary account associated with the xcm message has received the funds accordingly.
1260612606

1260712607
### Send a Message
1260812608

@@ -12620,7 +12620,7 @@ Unlike `execute`, the `send` function doesn't require a weight parameter since t
1262012620

1262112621
## Cross Contract Calls
1262212622

12623-
Beyond direct interaction and wrapper contracts, you can integrate XCM functionality directly into your existing smart contracts by inheriting from or importing the `IXcm` interface. This approach allows you to embed cross-chain capabilities seamlessly into your application logic.
12623+
Beyond direct interaction and wrapper contracts, you can integrate XCM functionality directly into your existing smart contracts by inheriting from or importing the `IXcm` interface. This approach enables you to seamlessly embed cross-chain capabilities into your application logic.
1262412624

1262512625
Whether you're building DeFi protocols, governance systems, or any application requiring cross-chain coordination, you can incorporate XCM calls directly within your contract's functions.
1262612626

0 commit comments

Comments
 (0)