From 87c3a57942681a2aaac24492f88b327e0c1cd98e Mon Sep 17 00:00:00 2001 From: Branislav Kontur Date: Mon, 17 Oct 2022 11:51:08 +0200 Subject: [PATCH] Removed unused AccountId from `trait MessagesBridge` (#1600) --- bridges/bin/runtime-common/src/messages.rs | 1 - bridges/modules/messages/src/lib.rs | 8 ++------ bridges/primitives/messages/src/source_chain.rs | 6 +++--- 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/bridges/bin/runtime-common/src/messages.rs b/bridges/bin/runtime-common/src/messages.rs index 50944826ddea..57f3f38cb2ef 100644 --- a/bridges/bin/runtime-common/src/messages.rs +++ b/bridges/bin/runtime-common/src/messages.rs @@ -532,7 +532,6 @@ pub mod source { /// Runtime message sender adapter. type MessageSender: bp_messages::source_chain::MessagesBridge< OriginOf>, - AccountIdOf>, BalanceOf>, FromThisChainMessagePayload, >; diff --git a/bridges/modules/messages/src/lib.rs b/bridges/modules/messages/src/lib.rs index 0580a0ffdfac..962fd8f79157 100644 --- a/bridges/modules/messages/src/lib.rs +++ b/bridges/modules/messages/src/lib.rs @@ -775,12 +775,8 @@ pub mod pallet { } impl - bp_messages::source_chain::MessagesBridge< - T::Origin, - T::AccountId, - T::OutboundMessageFee, - T::OutboundPayload, - > for Pallet + bp_messages::source_chain::MessagesBridge + for Pallet where T: Config, I: 'static, diff --git a/bridges/primitives/messages/src/source_chain.rs b/bridges/primitives/messages/src/source_chain.rs index 5c6283a80360..70b52dc63aab 100644 --- a/bridges/primitives/messages/src/source_chain.rs +++ b/bridges/primitives/messages/src/source_chain.rs @@ -182,7 +182,7 @@ pub struct SendMessageArtifacts { } /// Messages bridge API to be used from other pallets. -pub trait MessagesBridge { +pub trait MessagesBridge { /// Error type. type Error: Debug; @@ -201,8 +201,8 @@ pub trait MessagesBridge { #[derive(Eq, RuntimeDebug, PartialEq)] pub struct NoopMessagesBridge; -impl - MessagesBridge for NoopMessagesBridge +impl MessagesBridge + for NoopMessagesBridge { type Error = &'static str;