Skip to content

Commit 18c2b2d

Browse files
Fix fmt
1 parent 32206b8 commit 18c2b2d

File tree

4 files changed

+10
-14
lines changed

4 files changed

+10
-14
lines changed

.snippets/code/tutorials/interoperability/xcm-observability/deposit-reserve-asset-with-set-topic.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,7 @@ async function main() {
160160
XcmV5Instruction.SetTopic(Binary.fromHex(expectedMessageId)),
161161
]);
162162

163-
const weight: any =
164-
await para1Api.apis.XcmPaymentApi.query_xcm_weight(message);
163+
const weight: any = await para1Api.apis.XcmPaymentApi.query_xcm_weight(message);
165164
if (weight.success !== true) {
166165
console.error("❌ Failed to query XCM weight:", weight.error);
167166
para1Client.destroy();
@@ -172,7 +171,7 @@ async function main() {
172171
message,
173172
max_weight: weight.value,
174173
});
175-
const decodedCall = tx.decodedCall as any;
174+
const decodedCall: any = tx.decodedCall;
176175
console.log("👀 Executing XCM:", JSON.stringify(decodedCall, toHuman, 2));
177176

178177
try {

.snippets/code/tutorials/interoperability/xcm-observability/initiate-reserve-withdraw-with-set-topic.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,7 @@ async function main() {
213213
XcmV5Instruction.SetTopic(Binary.fromHex(expectedMessageId)),
214214
]);
215215

216-
const weight: any =
217-
await para1Api.apis.XcmPaymentApi.query_xcm_weight(message);
216+
const weight: any = await para1Api.apis.XcmPaymentApi.query_xcm_weight(message);
218217
if (weight.success !== true) {
219218
console.error("❌ Failed to query XCM weight:", weight.error);
220219
para1Client.destroy();
@@ -225,7 +224,7 @@ async function main() {
225224
message,
226225
max_weight: weight.value,
227226
});
228-
const decodedCall = tx.decodedCall as any;
227+
const decodedCall: any = tx.decodedCall;
229228
console.log("👀 Executing XCM:", JSON.stringify(decodedCall, toHuman, 2));
230229

231230
try {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ async function main() {
126126
fee_asset_item: 0,
127127
weight_limit: XcmV3WeightLimit.Unlimited(),
128128
});
129-
const decodedCall = tx.decodedCall as any;
129+
const decodedCall: any = tx.decodedCall;
130130
console.log("👀 Executing XCM:", JSON.stringify(decodedCall, toHuman, 2));
131131

132132
try {

llms.txt

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28106,7 +28106,7 @@ async function main() {
2810628106
fee_asset_item: 0,
2810728107
weight_limit: XcmV3WeightLimit.Unlimited(),
2810828108
});
28109-
const decodedCall = tx.decodedCall as any;
28109+
const decodedCall: any = tx.decodedCall;
2811028110
console.log("👀 Executing XCM:", JSON.stringify(decodedCall, toHuman, 2));
2811128111

2811228112
try {
@@ -28395,8 +28395,7 @@ async function main() {
2839528395
XcmV5Instruction.SetTopic(Binary.fromHex(expectedMessageId)),
2839628396
]);
2839728397

28398-
const weight: any =
28399-
await para1Api.apis.XcmPaymentApi.query_xcm_weight(message);
28398+
const weight: any = await para1Api.apis.XcmPaymentApi.query_xcm_weight(message);
2840028399
if (weight.success !== true) {
2840128400
console.error("❌ Failed to query XCM weight:", weight.error);
2840228401
para1Client.destroy();
@@ -28407,7 +28406,7 @@ async function main() {
2840728406
message,
2840828407
max_weight: weight.value,
2840928408
});
28410-
const decodedCall = tx.decodedCall as any;
28409+
const decodedCall: any = tx.decodedCall;
2841128410
console.log("👀 Executing XCM:", JSON.stringify(decodedCall, toHuman, 2));
2841228411

2841328412
try {
@@ -28722,8 +28721,7 @@ async function main() {
2872228721
XcmV5Instruction.SetTopic(Binary.fromHex(expectedMessageId)),
2872328722
]);
2872428723

28725-
const weight: any =
28726-
await para1Api.apis.XcmPaymentApi.query_xcm_weight(message);
28724+
const weight: any = await para1Api.apis.XcmPaymentApi.query_xcm_weight(message);
2872728725
if (weight.success !== true) {
2872828726
console.error("❌ Failed to query XCM weight:", weight.error);
2872928727
para1Client.destroy();
@@ -28734,7 +28732,7 @@ async function main() {
2873428732
message,
2873528733
max_weight: weight.value,
2873628734
});
28737-
const decodedCall = tx.decodedCall as any;
28735+
const decodedCall: any = tx.decodedCall;
2873828736
console.log("👀 Executing XCM:", JSON.stringify(decodedCall, toHuman, 2));
2873928737

2874028738
try {

0 commit comments

Comments
 (0)