mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-03-17 21:32:56 +01:00
event kinds as int, not uint8.
This commit is contained in:
parent
16b56e22ef
commit
77fa373bab
@ -27,7 +27,7 @@ type Event struct {
|
||||
PubKey string `json:"pubkey"`
|
||||
CreatedAt uint32 `json:"created_at"`
|
||||
|
||||
Kind uint8 `json:"kind"`
|
||||
Kind int `json:"kind"`
|
||||
|
||||
Tags Tags `json:"tags"`
|
||||
Content string `json:"content"`
|
||||
|
@ -5,7 +5,7 @@ import "github.com/fiatjaf/go-nostr/event"
|
||||
type EventFilter struct {
|
||||
ID string `json:"id,omitempty"`
|
||||
Author string `json:"author,omitempty"`
|
||||
Kind *uint8 `json:"kind,omitempty"`
|
||||
Kind *int `json:"kind,omitempty"`
|
||||
Authors []string `json:"authors,omitempty"`
|
||||
TagEvent string `json:"#e,omitempty"`
|
||||
TagProfile string `json:"#p,omitempty"`
|
||||
|
Loading…
x
Reference in New Issue
Block a user