Skip to content

[Bug] Add check nil for calling msgInfo #1568

@ArtGinn

Description

@ArtGinn
  • When I check logic ParseIBCMessageFromEvent func handle switch event.Type, I see that we still have a chance to get default: return nil when the type of event is not in our list check (new type of event but forgot to add check,... ), this will make msgInfo equal to nil and this call msgInfo.ParseAttrs(log, event.Attributes) will issue the error.

  • My suggestion is to add a check before calling msgInfo.ParseAttrs to secure our logic

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions