Skip to content

Commit

Permalink
fix: fix ensure unused capacity
Browse files Browse the repository at this point in the history
  • Loading branch information
StringNick committed Sep 17, 2024
1 parent 5065446 commit af9a49f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/database/mint_memory.zig
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ pub const MintMemoryDatabase = struct {
defer self.lock.unlock();

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

// we need full copy
for (proofs) |proof| {
Expand Down

0 comments on commit af9a49f

Please sign in to comment.