parse kind in nevent.

This commit is contained in:
fiatjaf 2023-05-04 08:24:39 -03:00
parent 6fc1627fcc
commit 53e0935308
No known key found for this signature in database
GPG Key ID: BAD43C4BE5C1A3A1

View File

@ -74,6 +74,8 @@ func Decode(bech32string string) (prefix string, value any, err error) {
result.Relays = append(result.Relays, string(v))
case TLVAuthor:
result.Author = hex.EncodeToString(v)
case TLVKind:
result.Kind = int(binary.BigEndian.Uint32(v))
default:
// ignore
}