From 82657d38ca4e814e68ae72b04e594f9c266eccba Mon Sep 17 00:00:00 2001 From: Jonathan Wang <31040440+jonathanpwang@users.noreply.github.com> Date: Sun, 10 Dec 2023 18:10:09 -0500 Subject: [PATCH] chore: fix keccak capacity check --- hashes/zkevm/src/keccak/component/circuit/shard.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hashes/zkevm/src/keccak/component/circuit/shard.rs b/hashes/zkevm/src/keccak/component/circuit/shard.rs index 9729fff7..ef2c99b3 100644 --- a/hashes/zkevm/src/keccak/component/circuit/shard.rs +++ b/hashes/zkevm/src/keccak/component/circuit/shard.rs @@ -232,7 +232,7 @@ impl KeccakComponentShardCircuit { witness_gen_only: bool, ) -> Self { let input_size = inputs.iter().map(|input| get_num_keccak_f(input.len())).sum::(); - assert!(input_size < params.capacity, "Input size exceeds capacity"); + assert!(input_size <= params.capacity, "Input size exceeds capacity"); let mut base_circuit_builder = BaseCircuitBuilder::new(witness_gen_only); base_circuit_builder.set_params(params.base_circuit_params.clone()); Self {