Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

State circuit spec sync #1802

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions zkevm-circuits/src/state_circuit/constraint_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use super::{
use crate::{
evm_circuit::util::{math_gadget::generate_lagrange_base_polynomial, not},
table::{AccountFieldTag, MPTProofType},
util::{word, Expr},
util::{word::{self, WordExpr}, Expr},
};
use bus_mapping::operation::Target;
use eth_types::Field;
Expand Down Expand Up @@ -205,13 +205,10 @@ impl<F: Field> ConstraintBuilder<F> {
"non-first access reads don't change value (lo)",
q.is_read() * (q.rw_table.value.lo() - q.rw_table.value_prev.lo()),
);
cb.require_zero(
"initial value doesn't change in an access group (hi)",
q.initial_value.hi() - q.initial_value_prev().hi(),
);
cb.require_zero(
"initial value doesn't change in an access group (lo)",
q.initial_value.lo() - q.initial_value_prev().lo(),
cb.require_word_equal(
"initial value doesn't change in an access group",
q.initial_value.to_word(),
q.initial_value_prev(),
);
});
}
Expand Down
Loading