Skip to content

Commit af9a49f

Browse files
committed
fix: fix ensure unused capacity
1 parent 5065446 commit af9a49f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/database/mint_memory.zig

+1-1
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ pub const MintMemoryDatabase = struct {
435435
defer self.lock.unlock();
436436

437437
// ensuring that capacity of proofs enough for array
438-
try self.proofs.ensureTotalCapacity(@intCast(proofs.len));
438+
try self.proofs.ensureUnusedCapacity(@intCast(proofs.len));
439439

440440
// we need full copy
441441
for (proofs) |proof| {

0 commit comments

Comments
 (0)