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

Commit

Permalink
code cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
hero78119 committed May 19, 2023
1 parent 7f2a59c commit 5d3b219
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions zkevm-circuits/src/evm_circuit/util/math_gadget/lt_word.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ mod tests {
fn configure_gadget_container(cb: &mut EVMConstraintBuilder<F>) -> Self {
let a = cb.query_word32();
let b = cb.query_word32();
let ltword_gadget =
LtWordGadget::<F, Word32Cell<F>, Word32Cell<F>>::construct(cb, a, b);
let ltword_gadget = LtWordGadget::construct(cb, a, b);
cb.require_equal("a < b", ltword_gadget.expr(), 1.expr());
LtWordTestContainer {
ltword_gadget,
Expand Down
4 changes: 2 additions & 2 deletions zkevm-circuits/src/util/word.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ impl<F: Field, const N: usize> WordLimbs<Cell<F>, N> {
self.assign_lo_hi(
region,
offset,
word.to_le_bytes()[0..N_BYTES_HALF_WORD],
word.to_le_bytes()[N_BYTES_HALF_WORD..],
word.to_le_bytes()[0..N_BYTES_HALF_WORD].try_into().ok(),
word.to_le_bytes()[N_BYTES_HALF_WORD..].try_into().ok(),
)
}

Expand Down

0 comments on commit 5d3b219

Please sign in to comment.