From a1c0b41c32de6823726ba3d14079eb9b20498516 Mon Sep 17 00:00:00 2001 From: manoahLinks Date: Tue, 3 Dec 2024 08:24:23 +0100 Subject: [PATCH] feat: Handle Campaign Created Event --- src/token-giver-indexer/token-giver-indexer.service.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/token-giver-indexer/token-giver-indexer.service.ts b/src/token-giver-indexer/token-giver-indexer.service.ts index 5e48dc7..b335aa0 100644 --- a/src/token-giver-indexer/token-giver-indexer.service.ts +++ b/src/token-giver-indexer/token-giver-indexer.service.ts @@ -78,22 +78,22 @@ export class TokenGiverIndexerService { event.data; const owner = validateAndParseAddress( - `0x${FieldElement.toBigInt(ownerFelt).toString(16)}` + `0x${FieldElement.toBigInt(ownerFelt).toString(16)}`, ); const campaignAddress = validateAndParseAddress( - `0x${FieldElement.toBigInt(campaignAddressFelt).toString(16)}` + `0x${FieldElement.toBigInt(campaignAddressFelt).toString(16)}`, ); const tokenId = Number( uint256.uint256ToBN({ low: FieldElement.toBigInt(tokenIdLow), high: FieldElement.toBigInt(tokenIdHigh), - }) + }), ); const tokenGiverNftContractAddress = validateAndParseAddress( - `0x${FieldElement.toBigInt(tokenGiverNftContractAddressFelt).toString(16)}` + `0x${FieldElement.toBigInt(tokenGiverNftContractAddressFelt).toString(16)}`, ); await this.prismaService.campaign.create({