mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-18 07:11:03 +00:00
Added tests for XCM barriers: AllowSubscriptions, WithUniqueTopic and TrailingSetTopicAsId (#3955)
Closes: https://github.com/paritytech/polkadot-sdk/issues/1756
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user