Skip to content

Commit

Permalink
fix: mtable: prohibit encoding value at disabled step
Browse files Browse the repository at this point in the history
  • Loading branch information
junyu0312 committed Jul 1, 2024
1 parent 37827c4 commit 4647da1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/zkwasm/src/circuits/mtable/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,8 @@ impl<F: FieldExt> MemoryTableConfig<F> {
// post_init_encode_cell assigned iff at memory finalized position.
post_init_encode_cell.curr_expr(meta)
* (constant_from!(1) - is_memory_finalized_position_bit.clone()),
post_init_encode_cell.curr_expr(meta)
* (constant_from!(1) - enabled_cell.curr_expr(meta)),
// encode post_init_encode_cell.
(post_init_encode_cell.curr_expr(meta)
- address_encode_cell.curr_expr(meta)
Expand Down

0 comments on commit 4647da1

Please sign in to comment.