From f010ca544affb79282d0ab433321d0f270034819 Mon Sep 17 00:00:00 2001 From: Jon Staab <shtaab@gmail.com> Date: Thu, 25 Sep 2025 15:49:53 -0700 Subject: [PATCH] Use ID in nip86.IDReason --- eventstore/codec/betterbinary/codec_test.go | 2 +- eventstore/codec/betterbinary/filtering_test.go | 2 +- nip65/nip65.go | 1 - nip77/envelopes.go | 2 +- nip86/responses.go | 4 ++-- sdk/kvstore/lmdb/store.go | 2 +- 6 files changed, 6 insertions(+), 7 deletions(-) diff --git a/eventstore/codec/betterbinary/codec_test.go b/eventstore/codec/betterbinary/codec_test.go index 5167865..0924860 100644 --- a/eventstore/codec/betterbinary/codec_test.go +++ b/eventstore/codec/betterbinary/codec_test.go @@ -5,9 +5,9 @@ import ( "slices" "testing" + "fiatjaf.com/nostr" "github.com/kr/pretty" "github.com/mailru/easyjson" - "fiatjaf.com/nostr" ) func TestBaseCase(t *testing.T) { diff --git a/eventstore/codec/betterbinary/filtering_test.go b/eventstore/codec/betterbinary/filtering_test.go index e4c8741..4a09ad3 100644 --- a/eventstore/codec/betterbinary/filtering_test.go +++ b/eventstore/codec/betterbinary/filtering_test.go @@ -3,8 +3,8 @@ package betterbinary import ( "testing" - "github.com/mailru/easyjson" "fiatjaf.com/nostr" + "github.com/mailru/easyjson" ) func TestTagFiltering(t *testing.T) { diff --git a/nip65/nip65.go b/nip65/nip65.go index bc8c447..a8870f8 100644 --- a/nip65/nip65.go +++ b/nip65/nip65.go @@ -31,4 +31,3 @@ func ParseRelayList(event nostr.Event) (readRelays []string, writeRelays []strin return readRelays, writeRelays } - diff --git a/nip77/envelopes.go b/nip77/envelopes.go index 0ee29b1..702575d 100644 --- a/nip77/envelopes.go +++ b/nip77/envelopes.go @@ -6,9 +6,9 @@ import ( "strings" "unsafe" + "fiatjaf.com/nostr" "github.com/mailru/easyjson" jwriter "github.com/mailru/easyjson/jwriter" - "fiatjaf.com/nostr" "github.com/tidwall/gjson" ) diff --git a/nip86/responses.go b/nip86/responses.go index a7cca03..90b1bf3 100644 --- a/nip86/responses.go +++ b/nip86/responses.go @@ -3,8 +3,8 @@ package nip86 import "fiatjaf.com/nostr" type IDReason struct { - ID string `json:"id"` - Reason string `json:"reason"` + ID nostr.ID `json:"id"` + Reason string `json:"reason"` } type PubKeyReason struct { diff --git a/sdk/kvstore/lmdb/store.go b/sdk/kvstore/lmdb/store.go index 405e7f1..d3c63b0 100644 --- a/sdk/kvstore/lmdb/store.go +++ b/sdk/kvstore/lmdb/store.go @@ -3,8 +3,8 @@ package lmdb import ( "os" - "github.com/PowerDNS/lmdb-go/lmdb" "fiatjaf.com/nostr/sdk/kvstore" + "github.com/PowerDNS/lmdb-go/lmdb" ) var _ kvstore.KVStore = (*Store)(nil) -- libgit2 1.9.1