Skip to content

Commit 2955ce4

Browse files
Update initiate-reserve-withdraw-with-set-topic.ts
1 parent 7de3555 commit 2955ce4

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Binary, BlockInfo, createClient, Enum, PolkadotClient, TypedApi} from "polkadot-api";
1+
import {Binary, type BlockInfo, createClient, Enum, type PolkadotClient} from "polkadot-api";
22
import {withPolkadotSdkCompat} from "polkadot-api/polkadot-sdk-compat";
33
import {getPolkadotSigner} from "polkadot-api/signer";
44
import {getWsProvider} from "polkadot-api/ws-provider/web";
@@ -40,7 +40,7 @@ const toHuman = (_key: any, value: any) => {
4040

4141
async function assertProcessedMessageId(
4242
client: PolkadotClient,
43-
api: TypedApi<any>,
43+
api: any,
4444
name: String,
4545
blockBefore: BlockInfo,
4646
expectedMessageId: String,
@@ -264,7 +264,7 @@ async function main() {
264264
}
265265
}
266266

267-
const sentEvents = await para1Api.event.PolkadotXcm.Sent.pull();
267+
const sentEvents: any = await para1Api.event.PolkadotXcm.Sent.pull();
268268
if (sentEvents.length > 0) {
269269
const sentMessageId = sentEvents[0].payload.message_id.asHex();
270270
console.log(`📣 Last message sent on ${para1Name}: ${sentMessageId}`);
@@ -286,4 +286,4 @@ async function main() {
286286
}
287287
}
288288

289-
main().catch(console.error);
289+
main().catch(console.error);

llms-full.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31605,7 +31605,7 @@ Your manual `SetTopic` is preserved by the runtime:
3160531605
Create and run `initiate-reserve-withdraw-with-set-topic.ts`:
3160631606

3160731607
```ts
31608-
import {Binary, BlockInfo, createClient, Enum, PolkadotClient, TypedApi} from "polkadot-api";
31608+
import {Binary, type BlockInfo, createClient, Enum, type PolkadotClient} from "polkadot-api";
3160931609
import {withPolkadotSdkCompat} from "polkadot-api/polkadot-sdk-compat";
3161031610
import {getPolkadotSigner} from "polkadot-api/signer";
3161131611
import {getWsProvider} from "polkadot-api/ws-provider/web";
@@ -31647,7 +31647,7 @@ const toHuman = (_key: any, value: any) => {
3164731647

3164831648
async function assertProcessedMessageId(
3164931649
client: PolkadotClient,
31650-
api: TypedApi<any>,
31650+
api: any,
3165131651
name: String,
3165231652
blockBefore: BlockInfo,
3165331653
expectedMessageId: String,
@@ -31871,7 +31871,7 @@ async function main() {
3187131871
}
3187231872
}
3187331873

31874-
const sentEvents = await para1Api.event.PolkadotXcm.Sent.pull();
31874+
const sentEvents: any = await para1Api.event.PolkadotXcm.Sent.pull();
3187531875
if (sentEvents.length > 0) {
3187631876
const sentMessageId = sentEvents[0].payload.message_id.asHex();
3187731877
console.log(`📣 Last message sent on ${para1Name}: ${sentMessageId}`);

0 commit comments

Comments
 (0)