Skip to content

Commit

Permalink
fix all_paddings test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
kunxian-xia committed Nov 2, 2023
1 parent ebac728 commit d3a49c4
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/mpt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,15 @@ impl MptCircuitConfig {
layouter.assign_region(
|| "mpt update padding rows",
|mut region| {
for offset in 0..(n_rows - (1 + n_assigned_rows)) {
self.mpt_update.assign_padding_row(&mut region, offset);
if n_assigned_rows == 0 {
// first row is all-zeroes row
for offset in 1..n_rows {
self.mpt_update.assign_padding_row(&mut region, offset);
}
} else {
for offset in 0..(n_rows - (1 + n_assigned_rows)) {
self.mpt_update.assign_padding_row(&mut region, offset);
}
}
Ok(())
},
Expand Down

0 comments on commit d3a49c4

Please sign in to comment.