Skip to content

Commit

Permalink
fix: add handling for MsgTimeout in Penumbra ChainProvider (#1378)
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 authored Jan 10, 2024
1 parent caf9d52 commit 4ad5ab2
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 4ad5ab2

Please sign in to comment.