Skip to content

Commit b4cdad0

Browse files
authored
Fix handler of EventSupplierUnbondingEnd (#44)
## Summary Fixed handler of `EventSupplierUnbondingEnd` ## Issue We left a `replaceAll` call to a bigint const ## Type of change Select one or more: - [ ] New feature, functionality or library - [x] Bug fix - [ ] Code health or cleanup - [ ] Documentation - [ ] Other (specify) ## Sanity Checklist - [x] I have tested my changes using the available tooling - [x] I have commented my code - [x] I have performed a self-review of my own code; both comments & source code - [ ] I create and reference any new tickets, if applicable - [ ] I have left TODOs throughout the codebase, if applicable
1 parent 3e1b46a commit b4cdad0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mappings/poktroll/suppliers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ async function _handleSupplierUnbondingEndEvent(
317317
// but alpha has still events without this
318318
logger.error(`[handleSupplierUnbondingEndEvent] unbonding_end_height not found`);
319319
} else {
320-
supplier.unstakingEndBlockId = BigInt((unbondingHeight as unknown as string).replaceAll("\"", ""));
320+
supplier.unstakingEndBlockId = unbondingHeight
321321
}
322322

323323
if (!reason) {

0 commit comments

Comments
 (0)