mirror of
https://github.com/pezkuwichain/pezkuwi-subquery.git
synced 2026-04-24 16:57:59 +00:00
Add codegen step to security workflow and fix prettier formatting
This commit is contained in:
@@ -145,8 +145,7 @@ export async function handlePoolUnbondingSlash(
|
||||
).unwrap();
|
||||
|
||||
const pool =
|
||||
(unbondingPools.withEra as any).get(eraIdNumber) ??
|
||||
unbondingPools.noEra;
|
||||
(unbondingPools.withEra as any).get(eraIdNumber) ?? unbondingPools.noEra;
|
||||
|
||||
await handleRelaychainPooledStakingSlash(
|
||||
unbondingSlashEvent,
|
||||
@@ -155,8 +154,7 @@ export async function handlePoolUnbondingSlash(
|
||||
(slash as any).toBigInt(),
|
||||
(member: any): bigint => {
|
||||
return (
|
||||
((member.unbondingEras as any).get(eraIdNumber))?.toBigInt() ??
|
||||
BigInt(0)
|
||||
(member.unbondingEras as any).get(eraIdNumber)?.toBigInt() ?? BigInt(0)
|
||||
);
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user