From 72386d27e14d7183b05137f5ce8bf53dd0329324 Mon Sep 17 00:00:00 2001 From: Dylan Cant Date: Mon, 6 Feb 2023 19:19:52 -0500 Subject: [PATCH] fix nip19_test --- nip19/nip19_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nip19/nip19_test.go b/nip19/nip19_test.go index 49951ff..5bd7396 100644 --- a/nip19/nip19_test.go +++ b/nip19/nip19_test.go @@ -2,6 +2,7 @@ package nip19 import ( "testing" + "github.com/nbd-wtf/go-nostr" ) func TestEncodeNpub(t *testing.T) { @@ -52,7 +53,7 @@ func TestDecodeNprofile(t *testing.T) { if prefix != "nprofile" { t.Error("what") } - pp, ok := data.(ProfilePointer) + pp, ok := data.(nostr.ProfilePointer) if !ok { t.Error("value returned of wrong type") } @@ -77,7 +78,7 @@ func TestDecodeOtherNprofile(t *testing.T) { if prefix != "nprofile" { t.Error("what") } - pp, ok := data.(ProfilePointer) + pp, ok := data.(nostr.ProfilePointer) if !ok { t.Error("value returned of wrong type") }