Skip to content

Commit

Permalink
return empty command instead of panic for empty ibc timeout_packet
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentysc committed Aug 22, 2023
1 parent 14ce9ef commit d3b26ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion usecase/parser/ibc/msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -1137,7 +1137,8 @@ func ParseMsgTimeout(

timeoutPacketEvent := log.GetEventByType("timeout_packet")
if timeoutPacketEvent == nil {
panic("missing `timeout_packet` event in TxsResult log")
parserParams.Logger.Errorf("missing `timeout_packet` event in TxsResult log: ", parserParams.MsgCommonParams.TxHash)
return []command.Command{}, []string{}
}

msgTimeoutParams := ibc_model.MsgTimeoutParams{
Expand Down

0 comments on commit d3b26ae

Please sign in to comment.