Skip to content

Commit da09b72

Browse files
Update limited-reserve-transfer-assets.ts
1 parent f4ecfbb commit da09b72

File tree

2 files changed

+16
-20
lines changed

2 files changed

+16
-20
lines changed

.snippets/code/tutorials/interoperability/xcm-observability/limited-reserve-transfer-assets.ts

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,21 +56,19 @@ async function main() {
5656
const aliceAddress = ss58Address(alicePublicKey);
5757

5858
const origin = Enum("system", Enum("Signed", aliceAddress));
59+
const beneficiary = {
60+
parents: 0,
61+
interior: XcmV5Junctions.X1(XcmV5Junction.AccountId32({
62+
id: Binary.fromHex("0x9818ff3c27d256631065ecabf0c50e02551e5c5342b8669486c1e566fcbf847f")
63+
})),
64+
}
65+
5966
const tx: any = para1Api.tx.PolkadotXcm.limited_reserve_transfer_assets({
6067
dest: XcmVersionedLocation.V5({
6168
parents: 1,
6269
interior: XcmV5Junctions.X1(XcmV5Junction.Parachain(2034)),
6370
}),
64-
beneficiary: XcmVersionedLocation.V5({
65-
parents: 0,
66-
interior: XcmV5Junctions.X1(
67-
XcmV5Junction.AccountId32({
68-
id: Binary.fromHex(
69-
"0x9818ff3c27d256631065ecabf0c50e02551e5c5342b8669486c1e566fcbf847f",
70-
),
71-
}),
72-
),
73-
}),
71+
beneficiary: XcmVersionedLocation.V5(beneficiary),
7472
assets: XcmVersionedAssets.V5([
7573
{
7674
id: {

llms.txt

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28015,21 +28015,19 @@ async function main() {
2801528015
const aliceAddress = ss58Address(alicePublicKey);
2801628016

2801728017
const origin = Enum("system", Enum("Signed", aliceAddress));
28018+
const beneficiary = {
28019+
parents: 0,
28020+
interior: XcmV5Junctions.X1(XcmV5Junction.AccountId32({
28021+
id: Binary.fromHex("0x9818ff3c27d256631065ecabf0c50e02551e5c5342b8669486c1e566fcbf847f")
28022+
})),
28023+
}
28024+
2801828025
const tx: any = para1Api.tx.PolkadotXcm.limited_reserve_transfer_assets({
2801928026
dest: XcmVersionedLocation.V5({
2802028027
parents: 1,
2802128028
interior: XcmV5Junctions.X1(XcmV5Junction.Parachain(2034)),
2802228029
}),
28023-
beneficiary: XcmVersionedLocation.V5({
28024-
parents: 0,
28025-
interior: XcmV5Junctions.X1(
28026-
XcmV5Junction.AccountId32({
28027-
id: Binary.fromHex(
28028-
"0x9818ff3c27d256631065ecabf0c50e02551e5c5342b8669486c1e566fcbf847f",
28029-
),
28030-
}),
28031-
),
28032-
}),
28030+
beneficiary: XcmVersionedLocation.V5(beneficiary),
2803328031
assets: XcmVersionedAssets.V5([
2803428032
{
2803528033
id: {

0 commit comments

Comments
 (0)