We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5065446 commit af9a49fCopy full SHA for af9a49f
src/core/database/mint_memory.zig
@@ -435,7 +435,7 @@ pub const MintMemoryDatabase = struct {
435
defer self.lock.unlock();
436
437
// ensuring that capacity of proofs enough for array
438
- try self.proofs.ensureTotalCapacity(@intCast(proofs.len));
+ try self.proofs.ensureUnusedCapacity(@intCast(proofs.len));
439
440
// we need full copy
441
for (proofs) |proof| {
0 commit comments