Skip to content

Commit

Permalink
fix: add handling for MsgTimeout in Penumbra ChainProvider
Browse files Browse the repository at this point in the history
This update introduces a new case statement for *chantypes.MsgTimeout within the Penumbra chain logic. This will correctly construct and return an Action_IbcRelayAction when a MsgTimeout is encountered.
  • Loading branch information
jtieri committed Jan 9, 2024
1 parent 3b05fdb commit 11bf0dd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion relayer/chains/penumbra/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,12 @@ func msgToPenumbraAction(msg sdk.Msg) (*penumbratypes.Action, error) {
RawAction: anyMsg,
}},
}, nil

case *chantypes.MsgTimeout:
return &penumbratypes.Action{
Action: &penumbratypes.Action_IbcRelayAction{IbcRelayAction: &penumbraibctypes.IbcRelay{
RawAction: anyMsg,
}},
}, nil
default:
return nil, fmt.Errorf("unknown message type: %T", msg)
}
Expand Down

0 comments on commit 11bf0dd

Please sign in to comment.