Skip to content

Commit 778b22c

Browse files
committed
fix zap missing event tag
1 parent 0bad661 commit 778b22c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

ndk/src/events/kinds/nutzap/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export class NDKNutzap extends NDKEvent {
139139
this.tags = this.tags.filter((t) => t[0] !== "p");
140140

141141
if (target instanceof NDKEvent) {
142-
this.tags.push();
142+
this.tags.push(target.tagReference());
143143
}
144144
}
145145

ndk/src/zapper/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ class NDKZapper extends EventEmitter<{
270270
nutzap.tags = [...nutzap.tags, ...(this.tags || [])];
271271
nutzap.proofs = proofs;
272272
nutzap.mint = mint;
273+
nutzap.target = this.target;
273274
nutzap.comment = this.comment;
274275
nutzap.unit = this.unit;
275276
nutzap.recipientPubkey = split.pubkey;

0 commit comments

Comments
 (0)