Skip to content

Commit

Permalink
Merge pull request #188 from UniqueNetwork/fix/total_pieses
Browse files Browse the repository at this point in the history
Fix total pieses bigint
  • Loading branch information
icehuntmen committed Jan 25, 2023
2 parents 2c38033 + 8229c1b commit 693287f
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions apps/crawler/src/services/token/token.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,12 +244,6 @@ export class TokenService {
const tokenData = await this.getTokenData(collectionId, tokenId, blockHash);
let result;

if (tokenData.tokenDecoded.collection.mode === 'ReFungible') {
if (eventName !== 'Common.ItemDestroyed') {
return null;
}
}

if (tokenData) {
const needCheckNesting = eventName === EventName.TRANSFER;

Expand All @@ -275,7 +269,7 @@ export class TokenService {
const preparedData = await this.prepareDataForDb(
tokenData,
blockHash,
Number(pieces?.amount),
pieces?.amount,
blockTimestamp,
needCheckNesting,
);
Expand Down

0 comments on commit 693287f

Please sign in to comment.