Compare commits

...

1 Commits

Author SHA1 Message Date
f117ab00f4 feat: add address to parsed zaps 2023-07-06 11:50:53 +00:00

View File

@ -33,6 +33,7 @@ export function parseZap(zapReceipt: NostrEvent, userCache: FeedCache<MetadataCa
id: zapReceipt.id,
zapService: zapReceipt.pubkey,
amount: (invoice?.amount ?? 0) / 1000,
address: findTag(zapRequest, "a"),
event: findTag(zapRequest, "e"),
sender: zapRequest.pubkey,
receiver: findTag(zapRequest, "p"),
@ -84,6 +85,7 @@ export interface ParsedZap {
amount: number;
content?: string;
sender?: HexKey;
address?: string;
valid: boolean;
zapService: HexKey;
anonZap: boolean;