feat: add address to parsed zaps

This commit is contained in:
verbiricha 2023-07-06 11:50:53 +00:00
parent 45a0ef4445
commit f117ab00f4

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;