Skip to content

Commit

Permalink
move comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mitschabaude committed Nov 6, 2024
1 parent 92670e5 commit d7d02eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/credentials/dynamic-array.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,9 +343,9 @@ class DynamicArrayBase<T = any, V = any> {
let firstBlock = blocks[0]!;
firstBlock[0] = firstBlock[0].add(this.length).seal();

// nBlocks = ceil(length / elementsPerBlock) = floor((length + elementsPerBlock - 1) / elementsPerBlock)
let Fieldx2 = StaticArray(Field, 2);
let Blocks = DynamicArray(Fieldx2, { maxLength: maxBlocks });
// nBlocks = ceil(length / elementsPerBlock) = floor((length + elementsPerBlock - 1) / elementsPerBlock)
let nBlocks = UInt32.Unsafe.fromField(
this.length.add(elementsPerUint32 + elementsPerBlock - 1)
).div(elementsPerBlock).value;
Expand Down

0 comments on commit d7d02eb

Please sign in to comment.