Skip to content

Commit dff2d02

Browse files
Update script
1 parent fff2048 commit dff2d02

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,13 @@ async function main() {
162162
}
163163
} else {
164164
console.log(`📣 No Sent events on ${para1Name} found.`);
165+
166+
const msgSentEvents = await para1Api.event.XcmpQueue.XcmpMessageSent.pull();
167+
if (msgSentEvents.length > 0) {
168+
const messageHash = msgSentEvents[0].payload.message_hash.asHex();
169+
console.log(`📣 Last message XcmpMessageSent on ${para1Name}: ${messageHash}`);
170+
console.log(`⚠️ PolkadotXcm.Sent is available in runtimes built from stable2503-5 or later.`);
171+
}
165172
}
166173
}
167174
} finally {

llms.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28078,6 +28078,13 @@ async function main() {
2807828078
}
2807928079
} else {
2808028080
console.log(`📣 No Sent events on ${para1Name} found.`);
28081+
28082+
const msgSentEvents = await para1Api.event.XcmpQueue.XcmpMessageSent.pull();
28083+
if (msgSentEvents.length > 0) {
28084+
const messageHash = msgSentEvents[0].payload.message_hash.asHex();
28085+
console.log(`📣 Last message XcmpMessageSent on ${para1Name}: ${messageHash}`);
28086+
console.log(`⚠️ PolkadotXcm.Sent is available in runtimes built from stable2503-5 or later.`);
28087+
}
2808128088
}
2808228089
}
2808328090
} finally {

0 commit comments

Comments
 (0)