Skip to content

Commit

Permalink
Use enough rows to allow tests to pass
Browse files Browse the repository at this point in the history
  • Loading branch information
Mason Liang committed Sep 26, 2023
1 parent bcf1636 commit 578c210
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/gadgets/byte_representation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ mod test {
layouter.assign_region(
|| "",
|mut region| {
for offset in 0..1024 {
for offset in 0..(8 * 256) {
selector.enable(&mut region, offset);
}
byte_bit.assign(&mut region);
Expand Down
2 changes: 1 addition & 1 deletion src/gadgets/canonical_representation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ mod test {
layouter.assign_region(
|| "",
|mut region| {
for offset in 0..256 {
for offset in 0..(8 * 256) {
selector.enable(&mut region, offset);
}
byte_bit.assign(&mut region);
Expand Down
2 changes: 1 addition & 1 deletion src/gadgets/key_bit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ mod test {
layouter.assign_region(
|| "",
|mut region| {
for offset in 0..32 {
for offset in 0..(8 * 256) {
selector.enable(&mut region, offset);
}

Expand Down
2 changes: 1 addition & 1 deletion src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use halo2_proofs::{
};
use mpt_zktrie::state::{builder::HASH_SCHEME_DONE, witness::WitnessGenerator, ZktrieState};

const N_ROWS: usize = 1024;
const N_ROWS: usize = 8 * 256 + 1;
const STORAGE_ADDRESS: Address = Address::repeat_byte(1);

fn initial_generator() -> WitnessGenerator {
Expand Down

0 comments on commit 578c210

Please sign in to comment.