Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
haiyizxx committed Dec 19, 2024
1 parent 6930d4d commit 8ebd7d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/tx/decode/unknown.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func doRejectUnknownFields(
if len(bz) == 0 {
return hasUnknownNonCriticals, nil
}
if recursionLimit == 0 {
if recursionLimit <= 0 {
return false, errors.New("recursion limit reached")
}

Expand Down

0 comments on commit 8ebd7d5

Please sign in to comment.