use another means to get seaport token id

master
lza_menace 2 years ago
parent c9c6302137
commit 0b7d3ff74a

@ -193,7 +193,7 @@ class Scrape extends Collection {
platform = 'opensea'; platform = 'opensea';
fromAddress = logDescription.args.offerer.toLowerCase(); fromAddress = logDescription.args.offerer.toLowerCase();
toAddress = logDescription.args.recipient.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 // slightly different logic if wETH offer accepted vs ETH purchase
if (matchingWethOffer.length > 0) { if (matchingWethOffer.length > 0) {
// wETH accepted bids provide the grand total in the offer // wETH accepted bids provide the grand total in the offer

Loading…
Cancel
Save