diff --git a/bin/runtime-common/src/messages.rs b/bin/runtime-common/src/messages.rs index a7ad19dc1f16..50944826ddea 100644 --- a/bin/runtime-common/src/messages.rs +++ b/bin/runtime-common/src/messages.rs @@ -315,7 +315,6 @@ pub mod source { impl LaneMessageVerifier< OriginOf>, - AccountIdOf>, FromThisChainMessagePayload, BalanceOf>, > for FromThisChainMessageVerifier diff --git a/modules/messages/src/lib.rs b/modules/messages/src/lib.rs index c2e4dce9b2d0..0580a0ffdfac 100644 --- a/modules/messages/src/lib.rs +++ b/modules/messages/src/lib.rs @@ -175,7 +175,6 @@ pub mod pallet { /// Message payload verifier. type LaneMessageVerifier: LaneMessageVerifier< Self::Origin, - Self::AccountId, Self::OutboundPayload, Self::OutboundMessageFee, >; diff --git a/modules/messages/src/mock.rs b/modules/messages/src/mock.rs index 9584d17b836b..41ae0352cfb0 100644 --- a/modules/messages/src/mock.rs +++ b/modules/messages/src/mock.rs @@ -298,9 +298,7 @@ impl TargetHeaderChain for TestTargetHeaderChain { #[derive(Debug, Default)] pub struct TestLaneMessageVerifier; -impl LaneMessageVerifier - for TestLaneMessageVerifier -{ +impl LaneMessageVerifier for TestLaneMessageVerifier { type Error = &'static str; fn verify_message( diff --git a/primitives/messages/src/source_chain.rs b/primitives/messages/src/source_chain.rs index be56ffe87fb3..c03d303ee841 100644 --- a/primitives/messages/src/source_chain.rs +++ b/primitives/messages/src/source_chain.rs @@ -96,7 +96,7 @@ pub trait TargetHeaderChain { /// Lane3 until some block, ...), then it may be built using this verifier. /// /// Any fee requirements should also be enforced here. -pub trait LaneMessageVerifier { +pub trait LaneMessageVerifier { /// Error type. type Error: Debug + Into<&'static str>; @@ -278,8 +278,8 @@ impl TargetHeaderChain for ForbidOutboun } } -impl - LaneMessageVerifier for ForbidOutboundMessages +impl LaneMessageVerifier + for ForbidOutboundMessages { type Error = &'static str;