Skip to content

Commit

Permalink
[chore] use constant instead of hardcoded number (#191)
Browse files Browse the repository at this point in the history
chore: use constant instead of hardcoded number
  • Loading branch information
jonathanpwang authored Oct 19, 2023
1 parent e25a4cb commit 47854b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hashes/zkevm/src/sha256/vanilla/witness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ impl<F: Field> Sha256CircuitConfig<F> {
0
}),
),
("Ha", self.h_a, F::from(if round < 4 { H[3 - round] as u64 } else { 0 })),
("He", self.h_e, F::from(if round < 4 { H[7 - round] as u64 } else { 0 })),
("Ha", self.h_a, F::from(if round < NUM_START_ROWS { H[3 - round] as u64 } else { 0 })),
("He", self.h_e, F::from(if round < NUM_START_ROWS { H[7 - round] as u64 } else { 0 })),
] {
raw_assign_fixed(region, *column, offset, *value);
}
Expand Down

0 comments on commit 47854b7

Please sign in to comment.