Use ID in nip86.IDReason

This commit is contained in:
Jon Staab
2025-09-25 15:49:53 -07:00
committed by fiatjaf
parent 59bd3c29ff
commit 113657314e
6 changed files with 6 additions and 7 deletions

View File

@@ -5,9 +5,9 @@ import (
"slices" "slices"
"testing" "testing"
"fiatjaf.com/nostr"
"github.com/kr/pretty" "github.com/kr/pretty"
"github.com/mailru/easyjson" "github.com/mailru/easyjson"
"fiatjaf.com/nostr"
) )
func TestBaseCase(t *testing.T) { func TestBaseCase(t *testing.T) {

View File

@@ -3,8 +3,8 @@ package betterbinary
import ( import (
"testing" "testing"
"github.com/mailru/easyjson"
"fiatjaf.com/nostr" "fiatjaf.com/nostr"
"github.com/mailru/easyjson"
) )
func TestTagFiltering(t *testing.T) { func TestTagFiltering(t *testing.T) {

View File

@@ -31,4 +31,3 @@ func ParseRelayList(event nostr.Event) (readRelays []string, writeRelays []strin
return readRelays, writeRelays return readRelays, writeRelays
} }

View File

@@ -6,9 +6,9 @@ import (
"strings" "strings"
"unsafe" "unsafe"
"fiatjaf.com/nostr"
"github.com/mailru/easyjson" "github.com/mailru/easyjson"
jwriter "github.com/mailru/easyjson/jwriter" jwriter "github.com/mailru/easyjson/jwriter"
"fiatjaf.com/nostr"
"github.com/tidwall/gjson" "github.com/tidwall/gjson"
) )

View File

@@ -3,8 +3,8 @@ package nip86
import "fiatjaf.com/nostr" import "fiatjaf.com/nostr"
type IDReason struct { type IDReason struct {
ID string `json:"id"` ID nostr.ID `json:"id"`
Reason string `json:"reason"` Reason string `json:"reason"`
} }
type PubKeyReason struct { type PubKeyReason struct {

View File

@@ -3,8 +3,8 @@ package lmdb
import ( import (
"os" "os"
"github.com/PowerDNS/lmdb-go/lmdb"
"fiatjaf.com/nostr/sdk/kvstore" "fiatjaf.com/nostr/sdk/kvstore"
"github.com/PowerDNS/lmdb-go/lmdb"
) )
var _ kvstore.KVStore = (*Store)(nil) var _ kvstore.KVStore = (*Store)(nil)