diff --git a/src/mapping.ts b/src/mapping.ts index 34a3145..cbacc12 100644 --- a/src/mapping.ts +++ b/src/mapping.ts @@ -298,7 +298,7 @@ export function handleAuction_Initialized( statistics.save(); let auction = getOrCreateAuction(event.params._auctionID, event); - + log.debug(`ttt:111`, [auction.bidDecimals.toString()]); if (auction == null) { auction = new Auction(event.params._auctionID.toString()); } @@ -316,6 +316,7 @@ export function handleAuction_Initialized( "0x0000000000000000000000000000000000000000" ); auction.cancelled = false; + log.debug(`ttt:222`, [auction.bidDecimals.toString()]); //Fetch auction info from contract let contract = Contract.bind(event.address); @@ -326,6 +327,7 @@ export function handleAuction_Initialized( // @todo: seller, createdAt, startsAt, endsAt, claimAt, // contractId quantity, presetId, cancelled, ercType, bids objects if (!result.reverted) { + log.debug(`ttt:333`, [auction.bidDecimals.toString()]); let auctionInfo = result.value; auction.category = auctionInfo.info.category; @@ -356,6 +358,7 @@ export function handleAuction_Initialized( auction.highestBidder = auctionInfo.highestBidder; auction.cancellationPeriodDuration = BIGINT_CANCELLATION_PERIOD_IN_SECONDS; + log.debug(`ttt:444`, [auction.bidDecimals.toString()]); auction = updateProceeds(auction); } @@ -363,6 +366,7 @@ export function handleAuction_Initialized( auction.hammerTimeDuration = resultHammerTime.value; } + log.debug(`ttt:555`, [auction.bidDecimals.toString()]); auction.save(); let contractEntity = ContractEntity.load(