Skip to content

Commit 74a885a

Browse files
committed
fix IDL compare script
1 parent 135a5bc commit 74a885a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ts/client/scripts/idl-compare.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,10 @@ export function accountSize(idl: Idl, idlAccount: IdlTypeDef): number {
311311
);
312312
return Math.max(...variantSizes) + 1;
313313
}
314+
if (idlAccount.type.kind === 'alias') {
315+
return typeSize(idl, idlAccount.type.value);
316+
}
317+
314318
if (idlAccount.type.fields === undefined) {
315319
return 0;
316320
}

0 commit comments

Comments
 (0)