From e35b9ef6f3f00b7a6a26e32bb62c58e397e9baf8 Mon Sep 17 00:00:00 2001 From: Philippe Laferriere Date: Tue, 10 Jan 2023 14:40:49 -0500 Subject: [PATCH] Make dispatch and decode pub again --- crates/ibc/src/core/ics26_routing/handler.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/crates/ibc/src/core/ics26_routing/handler.rs b/crates/ibc/src/core/ics26_routing/handler.rs index 4c40f828b..89acef5e3 100644 --- a/crates/ibc/src/core/ics26_routing/handler.rs +++ b/crates/ibc/src/core/ics26_routing/handler.rs @@ -42,7 +42,7 @@ where } /// Attempts to convert a message into a [MsgEnvelope] message -pub(crate) fn decode(message: Any) -> Result { +pub fn decode(message: Any) -> Result { message.try_into() } @@ -51,10 +51,7 @@ pub(crate) fn decode(message: Any) -> Result { /// and events produced after processing the input `msg`. /// If this method returns an error, the runtime is expected to rollback all state modifications to /// the `Ctx` caused by all messages from the transaction that this `msg` is a part of. -pub(crate) fn dispatch( - ctx: &mut Ctx, - msg: MsgEnvelope, -) -> Result, RouterError> +pub fn dispatch(ctx: &mut Ctx, msg: MsgEnvelope) -> Result, RouterError> where Ctx: RouterContext, {