File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
.snippets/code/tutorials/interoperability/xcm-observability Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments