fix nip19 decoding type quibble (this shouldn't be an error I think, but).

This commit is contained in:
fiatjaf
2025-09-23 12:29:45 -03:00
parent fd9f956a3d
commit 5727c1e477

View File

@@ -30,7 +30,7 @@ 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, [32]byte(data[0:32]), nil
return prefix, 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))