Added tests for XCM barriers: AllowSubscriptions, WithUniqueTopic and TrailingSetTopicAsId (#3955)

Closes: https://github.com/paritytech/polkadot-sdk/issues/1756
This commit is contained in:
Branislav Kontur
2024-04-03 13:10:50 +02:00
committed by GitHub
parent 9b378a2ffe
commit cdacfb9d33
5 changed files with 182 additions and 11 deletions
@@ -33,9 +33,9 @@ pub struct Properties {
/// Trait to determine whether the execution engine should actually execute a given XCM.
///
/// Can be amalgamated into a tuple to have multiple trials. If any of the tuple elements returns
/// `Ok()`, the execution stops. Else, `Err(_)` is returned if all elements reject the message.
/// `Ok(())`, the execution stops. Else, `Err(_)` is returned if all elements reject the message.
pub trait ShouldExecute {
/// Returns `true` if the given `message` may be executed.
/// Returns `Ok(())` if the given `message` may be executed.
///
/// - `origin`: The origin (sender) of the message.
/// - `instructions`: The message itself.