Skip to content
This repository was archived by the owner on Apr 18, 2025. It is now read-only.

Commit 750169c

Browse files
authored
fix: constraint on num_all_txs_acc' is wrong (#790)
1 parent 8bc9812 commit 750169c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zkevm-circuits/src/tx_circuit.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -881,15 +881,15 @@ impl<F: Field> SubCircuitConfig<F> for TxCircuitConfig<F> {
881881
);
882882

883883
// num_all_txs_acc' - num_all_txs_acc = is_l1_msg' ? queue_index' -
884-
// total_l1_popped + 1 : 1
884+
// total_l1_popped' + 1 : 1
885885
cb.require_equal(
886886
"num_all_txs_acc' - num_all_txs_acc",
887887
meta.query_advice(num_all_txs_acc, Rotation::next())
888888
- meta.query_advice(num_all_txs_acc, Rotation::cur()),
889889
select::expr(
890890
meta.query_advice(is_l1_msg, Rotation::next()),
891891
meta.query_advice(tx_nonce, Rotation::next())
892-
- meta.query_advice(total_l1_popped_before, Rotation::cur())
892+
- meta.query_advice(total_l1_popped_before, Rotation::next())
893893
+ 1.expr(),
894894
1.expr(),
895895
),

0 commit comments

Comments
 (0)