Use ID in nip86.IDReason
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
@@ -31,4 +31,3 @@ func ParseRelayList(event nostr.Event) (readRelays []string, writeRelays []strin
|
|||||||
|
|
||||||
return readRelays, writeRelays
|
return readRelays, writeRelays
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user