Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make dispatch() and decode() pub again #343

Merged
merged 1 commit into from
Jan 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions crates/ibc/src/core/ics26_routing/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ where
}

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

Expand All @@ -51,10 +51,7 @@ pub(crate) fn decode(message: Any) -> Result<MsgEnvelope, RouterError> {
/// 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>(
ctx: &mut Ctx,
msg: MsgEnvelope,
) -> Result<HandlerOutput<()>, RouterError>
pub fn dispatch<Ctx>(ctx: &mut Ctx, msg: MsgEnvelope) -> Result<HandlerOutput<()>, RouterError>
where
Ctx: RouterContext,
{
Expand Down