Skip to content

Commit

Permalink
Merge pull request #208 from hypercerts-org/fix/sales_buyer_seller
Browse files Browse the repository at this point in the history
fix(sales): get correct address for buyer and seller
  • Loading branch information
bitbeckers authored Sep 2, 2024
2 parents df97d1c + acd338a commit dfe01a1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/parsing/parseTakerBidEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,11 @@ export const parseTakerBidEvent: ParserMethod<TakerBid> = 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,
Expand Down

0 comments on commit dfe01a1

Please sign in to comment.