Skip to content

Commit 264b5be

Browse files
authored
Make dispatch and decode pub again (#343)
1 parent 75a7267 commit 264b5be

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

crates/ibc/src/core/ics26_routing/handler.rs

+2-5
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ where
4242
}
4343

4444
/// Attempts to convert a message into a [MsgEnvelope] message
45-
pub(crate) fn decode(message: Any) -> Result<MsgEnvelope, RouterError> {
45+
pub fn decode(message: Any) -> Result<MsgEnvelope, RouterError> {
4646
message.try_into()
4747
}
4848

@@ -51,10 +51,7 @@ pub(crate) fn decode(message: Any) -> Result<MsgEnvelope, RouterError> {
5151
/// and events produced after processing the input `msg`.
5252
/// If this method returns an error, the runtime is expected to rollback all state modifications to
5353
/// the `Ctx` caused by all messages from the transaction that this `msg` is a part of.
54-
pub(crate) fn dispatch<Ctx>(
55-
ctx: &mut Ctx,
56-
msg: MsgEnvelope,
57-
) -> Result<HandlerOutput<()>, RouterError>
54+
pub fn dispatch<Ctx>(ctx: &mut Ctx, msg: MsgEnvelope) -> Result<HandlerOutput<()>, RouterError>
5855
where
5956
Ctx: RouterContext,
6057
{

0 commit comments

Comments
 (0)