Add codegen step to security workflow and fix prettier formatting

This commit is contained in:
2026-02-13 01:51:37 +03:00
parent 62550b442b
commit 0b0519bff8
6 changed files with 44 additions and 26 deletions
+2 -4
View File
@@ -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)
);
},
);