Skip to content

Commit f15a424

Browse files
paritytech-release-backport-bot[bot]acatangiugithub-actions[bot]
authored
[stable2506] Backport #9250 (#9359)
Backport #9250 into `stable2506` from acatangiu. See the [documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md) on how to use this bot. <!-- # To be used by other automation, do not modify: original-pr-number: #${pull_number} --> --------- Co-authored-by: Adrian Catangiu <[email protected]> Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent b13724f commit f15a424

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

polkadot/xcm/xcm-builder/src/universal_exports.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,18 @@ impl<Bridges: ExporterFor, Router: SendXcm, UniversalLocation: Get<InteriorLocat
331331
}
332332
}
333333

334+
impl<Bridges, Router, UniversalLocation> InspectMessageQueues
335+
for UnpaidRemoteExporter<Bridges, Router, UniversalLocation>
336+
{
337+
fn clear_messages() {}
338+
339+
/// This router needs to implement `InspectMessageQueues` but doesn't have to
340+
/// return any messages, since it just reuses the `XcmpQueue` router.
341+
fn get_messages() -> Vec<(VersionedLocation, Vec<VersionedXcm<()>>)> {
342+
Vec::new()
343+
}
344+
}
345+
334346
/// Implementation of `SendXcm` which wraps the message inside an `ExportMessage` instruction
335347
/// and sends it to a destination known to be able to handle it.
336348
///

prdoc/pr_9250.prdoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
title: implement InspectMessageQueues for UnpaidRemoteExporter
2+
doc:
3+
- audience: Runtime Dev
4+
description: Add missing implementation of `InspectMessageQueues` for `UnpaidRemoteExporter`
5+
crates:
6+
- name: staging-xcm-builder
7+
bump: minor

0 commit comments

Comments
 (0)