From acd338ae95b3095c97e94f36acb705f66ddcacfe Mon Sep 17 00:00:00 2001 From: bitbeckers Date: Mon, 2 Sep 2024 11:43:43 +0200 Subject: [PATCH] fix(sales): get correct address for buyer and seller --- src/parsing/parseTakerBidEvent.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/parsing/parseTakerBidEvent.ts b/src/parsing/parseTakerBidEvent.ts index 297e50a..298b55a 100644 --- a/src/parsing/parseTakerBidEvent.ts +++ b/src/parsing/parseTakerBidEvent.ts @@ -102,12 +102,11 @@ export const parseTakerBidEvent: ParserMethod = async ({ // @ts-expect-error args is missing in the type const hypercertId = `${chain_id}-${getAddress(bid.params?.collection)}-${batchValueTransferLog?.args?.claimIDs[0]}`; - console.log("[parseTakerBidEvent] Hypercert ID", hypercertId); return [ TakerBid.parse({ amounts: bid.params.amounts, - seller: getAddress(bid.params.bidRecipient), - buyer: getAddress(bid.params.bidUser), + seller: getAddress(bid.params.feeRecipients[0]), + buyer: getAddress(bid.params.bidRecipient), currency: getAddress(bid.params.currency), collection: getAddress(bid.params.collection), item_ids: bid.params.itemIds,