From 3896fddaa2638f8fca7d0bfe704ce5588f5bdfb6 Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Thu, 16 Mar 2023 14:12:50 -0600 Subject: [PATCH] proper test component instantiation --- circuits/storer.circom | 4 ++-- test/circuits/storer_test.circom | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/circuits/storer.circom b/circuits/storer.circom index a6aabd4..6eab89f 100644 --- a/circuits/storer.circom +++ b/circuits/storer.circom @@ -38,9 +38,9 @@ function roundUpDiv(x, n) { if (last > 0) { return div + 1; - } else { - return div; } + + return div; } template parallel HashCheck(BLOCK_SIZE, CHUNK_SIZE) { diff --git a/test/circuits/storer_test.circom b/test/circuits/storer_test.circom index 06908ce..2d7a8e7 100644 --- a/test/circuits/storer_test.circom +++ b/test/circuits/storer_test.circom @@ -2,5 +2,4 @@ pragma circom 2.1.0; include "../../circuits/storer.circom"; -// component main { public [root, salt] } = StorageProver(32, 4, 2, 4); -component main { public [root, salt] } = StorageProver(32, 4, 2, 2); +component main { public [root, salt] } = StorageProver(32, 4, 2, 5);