From 647b87576a4c9486c766d8e0d03ad94e579d3213 Mon Sep 17 00:00:00 2001 From: Tomasz Polaczyk Date: Tue, 12 Nov 2024 11:55:56 +0100 Subject: [PATCH] Fix tests --- pallets/external-validator-slashes/src/mock.rs | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/pallets/external-validator-slashes/src/mock.rs b/pallets/external-validator-slashes/src/mock.rs index c485d2ecd..d4ba5df44 100644 --- a/pallets/external-validator-slashes/src/mock.rs +++ b/pallets/external-validator-slashes/src/mock.rs @@ -14,9 +14,7 @@ // You should have received a copy of the GNU General Public License // along with Tanssi. If not, see -use snowbridge_core::outbound::Fee; use snowbridge_core::outbound::SendError; -use snowbridge_core::outbound::SendMessage; use snowbridge_core::outbound::SendMessageFeeProvider; use { crate as external_validator_slashes, @@ -201,21 +199,9 @@ impl DeferPeriodGetter { } pub struct MockOkOutboundQueue; -impl SendMessage for MockOkOutboundQueue { +impl tp_bridge::DeliverMessage for MockOkOutboundQueue { type Ticket = (); - fn validate( - _: &snowbridge_core::outbound::Message, - ) -> Result<(Self::Ticket, Fee), SendError> { - Ok(( - (), - Fee { - local: 1, - remote: 1, - }, - )) - } - fn deliver(_: Self::Ticket) -> Result { Ok(H256::zero()) }