Skip to content

Commit

Permalink
fix(filter): parsing kinds with uint16 instead of int16. (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
kehiy authored Dec 28, 2024
1 parent d0b2372 commit 02675a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions types/filter/filter_easyjson.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func easyjson4d398eaaDecodeGithubComDezhTechImmortalTypesFilter(in *jlexer.Lexer
out.Kinds = (out.Kinds)[:0]
}
for !in.IsDelim(']') {
v2 := types.Kind(in.Int16())
v2 := types.Kind(in.Uint16())
out.Kinds = append(out.Kinds, v2)
in.WantComma()
}
Expand Down Expand Up @@ -195,7 +195,7 @@ func easyjson4d398eaaEncodeGithubComDezhTechImmortalTypesFilter(out *jwriter.Wri
if v6 > 0 {
out.RawByte(',')
}
out.Int(int(v7))
out.Uint16(uint16(v7))
}
out.RawByte(']')
}
Expand Down
2 changes: 1 addition & 1 deletion types/message/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func (em Event) EncodeToJSON() ([]byte, error) {
return res, nil
}

// Req reperesents a NIP-01 REQ message.
// Req represents a NIP-01 REQ message.
type Req struct {
SubscriptionID string
filter.Filters
Expand Down

0 comments on commit 02675a7

Please sign in to comment.