diff --git a/pointers_easyjson.go b/pointers_easyjson.go index 5d4aa60..faf2c8b 100644 --- a/pointers_easyjson.go +++ b/pointers_easyjson.go @@ -313,7 +313,7 @@ func easyjson33014d6eEncodeFiatjafComNostr2(out *jwriter.Writer, in EntityPointe out.RawString(prefix) out.Uint(uint(in.Kind)) } - if in.Identifier == "" && in.Kind.IsReplaceable() { + if in.Identifier != "" || in.Kind.IsAddressable() { // this is expected, no identifiers in replaceable events, so don't print // but we do print in case there is an identifier, incorrectly, to assist debug const prefix string = ",\"identifier\":"