Skip to content

Commit

Permalink
fix IDL compare script
Browse files Browse the repository at this point in the history
  • Loading branch information
mschneider committed Nov 23, 2024
1 parent 135a5bc commit 74a885a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ts/client/scripts/idl-compare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,10 @@ export function accountSize(idl: Idl, idlAccount: IdlTypeDef): number {
);
return Math.max(...variantSizes) + 1;
}
if (idlAccount.type.kind === 'alias') {
return typeSize(idl, idlAccount.type.value);
}

if (idlAccount.type.fields === undefined) {
return 0;
}
Expand Down

0 comments on commit 74a885a

Please sign in to comment.