Skip to content

Commit

Permalink
fix for ibc-go use case
Browse files Browse the repository at this point in the history
  • Loading branch information
kocubinski committed Dec 12, 2024
1 parent 97d37ae commit a6d28e3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions x/tx/decode/unknown.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,13 @@ func RejectUnknownFields(bz []byte, desc protoreflect.MessageDescriptor, allowUn
if fieldMessage == nil {
continue
}
if fieldMessage.IsPlaceholder() {
innerDesc, err := resolver.FindDescriptorByName(fieldMessage.FullName())
if err != nil {
return hasUnknownNonCriticals, err
}
fieldMessage = innerDesc.(protoreflect.MessageDescriptor)
}

// consume length prefix of nested message
_, o := protowire.ConsumeVarint(fieldBytes)
Expand Down

0 comments on commit a6d28e3

Please sign in to comment.