Skip to content

Commit

Permalink
chore: fix keccak capacity check (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanpwang authored Dec 10, 2023
1 parent fe3e439 commit ae6f378
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hashes/zkevm/src/keccak/component/circuit/shard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ impl<F: Field> KeccakComponentShardCircuit<F> {
witness_gen_only: bool,
) -> Self {
let input_size = inputs.iter().map(|input| get_num_keccak_f(input.len())).sum::<usize>();
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 {
Expand Down

0 comments on commit ae6f378

Please sign in to comment.