From 0b7d3ff74ab25189426cc02725748b88e8bc014b Mon Sep 17 00:00:00 2001 From: lza_menace Date: Mon, 7 Nov 2022 14:03:06 -0800 Subject: [PATCH] use another means to get seaport token id --- src/scraper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scraper.js b/src/scraper.js index 0f63eee..2da0c9c 100644 --- a/src/scraper.js +++ b/src/scraper.js @@ -193,7 +193,7 @@ class Scrape extends Collection { platform = 'opensea'; fromAddress = logDescription.args.offerer.toLowerCase(); toAddress = logDescription.args.recipient.toLowerCase(); - tokenId = logDescription.args.offer.map(o => o.identifier.toString()); + tokenId = logDescription.args.consideration.filter(i => i.identifier.toString() != 0).map(i => i.identifier.toString())[0]; // slightly different logic if wETH offer accepted vs ETH purchase if (matchingWethOffer.length > 0) { // wETH accepted bids provide the grand total in the offer