@@ -135,7 +135,7 @@ public class GenericEvent extends BaseEvent implements ISignable, Deleteable {
135135
136136 @ JsonIgnore @ EqualsAndHashCode .Exclude private byte [] _serializedEvent ;
137137
138- @ JsonIgnore @ EqualsAndHashCode .Exclude private Integer nip ;
138+ @ JsonIgnore @ EqualsAndHashCode .Exclude private String nip ;
139139
140140 public GenericEvent () {
141141 this .tags = new ArrayList <>();
@@ -322,7 +322,7 @@ public static class GenericEventBuilder {
322322 private String content = "" ;
323323 private Long createdAt ;
324324 private Signature signature ;
325- private Integer nip ;
325+ private String nip ;
326326
327327 public GenericEventBuilder id (String id ) { this .id = id ; return this ; }
328328 public GenericEventBuilder pubKey (PublicKey pubKey ) { this .pubKey = pubKey ; return this ; }
@@ -332,7 +332,7 @@ public static class GenericEventBuilder {
332332 public GenericEventBuilder content (String content ) { this .content = content ; return this ; }
333333 public GenericEventBuilder createdAt (Long createdAt ) { this .createdAt = createdAt ; return this ; }
334334 public GenericEventBuilder signature (Signature signature ) { this .signature = signature ; return this ; }
335- public GenericEventBuilder nip (Integer nip ) { this .nip = nip ; return this ; }
335+ public GenericEventBuilder nip (String nip ) { this .nip = nip ; return this ; }
336336
337337 public GenericEvent build () {
338338 GenericEvent event = new GenericEvent ();
@@ -498,11 +498,11 @@ protected void addStandardTag(BaseTag tag) {
498498 Optional .ofNullable (tag ).ifPresent (this ::addTag );
499499 }
500500
501- protected void addGenericTag (String key , Integer nip , Object value ) {
501+ protected void addGenericTag (String key , String nip , Object value ) {
502502 Optional .ofNullable (value ).ifPresent (s -> addTag (BaseTag .create (key , s .toString ())));
503503 }
504504
505- protected void addStringListTag (String label , Integer nip , List <String > tag ) {
505+ protected void addStringListTag (String label , String nip , List <String > tag ) {
506506 Optional .ofNullable (tag ).ifPresent (tagList -> BaseTag .create (label , tagList ));
507507 }
508508
0 commit comments