Skip to content

Commit

Permalink
fix: use I64
Browse files Browse the repository at this point in the history
  • Loading branch information
Majorfi committed Jul 23, 2024
1 parent a368f61 commit b1e8661
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/mappings/base/base-pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/mappings/erc-721-pool-factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit b1e8661

Please sign in to comment.