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); } }