diff --git a/nip19/nip19.go b/nip19/nip19.go index bdc9de0..95ac67d 100644 --- a/nip19/nip19.go +++ b/nip19/nip19.go @@ -30,7 +30,9 @@ func Decode(bech32string string) (prefix string, value any, err error) { if len(data) != 32 { return prefix, nil, fmt.Errorf("note should be 32 bytes (%d)", len(data)) } - return prefix, nostr.ID(data[0:32]), nil + return prefix, nostr.EventPointer{ + ID: nostr.ID(data[0:32]), + }, nil case "npub": if len(data) != 32 { return prefix, nil, fmt.Errorf("npub should be 32 bytes (%d)", len(data))