From b1e866134c3bd7d638e3b1b06656f9296acb450d Mon Sep 17 00:00:00 2001 From: Majorfi Date: Tue, 23 Jul 2024 12:26:32 +0200 Subject: [PATCH] fix: use I64 --- src/mappings/base/base-pool.ts | 2 +- src/mappings/erc-721-pool-factory.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mappings/base/base-pool.ts b/src/mappings/base/base-pool.ts index 49c5501..4ea2120 100644 --- a/src/mappings/base/base-pool.ts +++ b/src/mappings/base/base-pool.ts @@ -747,7 +747,7 @@ export function _handleBucketBankruptcy(event: ethereum.Event, index: BigInt, lp const lend = Lend.load(lendId) if (!lend) { // If somehow the lend entity is not found, log an error and continue - log.error("_handleBucketBankruptcy: lend entity with id {} not found", [lendId.toString()]) + log.warning("_handleBucketBankruptcy: lend entity with id {} not found", [lendId.toHexString()]) continue } lend.lpb = ZERO_BD diff --git a/src/mappings/erc-721-pool-factory.ts b/src/mappings/erc-721-pool-factory.ts index 861c712..b8a92db 100644 --- a/src/mappings/erc-721-pool-factory.ts +++ b/src/mappings/erc-721-pool-factory.ts @@ -104,7 +104,7 @@ export function handlePoolCreated(event: PoolCreatedEvent): void { for (let i = 0; i < tokenIdsHexString.length; i += chunkSize) { let hexChunk = tokenIdsHexString.substring(i, i + chunkSize); - let bigIntValue = BigInt.fromI32(I32.parseInt(hexChunk, 16)); + let bigIntValue = BigInt.fromI64(I64.parseInt(hexChunk, 16)); tokenIds.push(bigIntValue); } }