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

Commit

Permalink
fix wrong address check
Browse files Browse the repository at this point in the history
  • Loading branch information
hero78119 committed Jun 21, 2023
1 parent 9b2610b commit 1630508
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion zkevm-circuits/src/evm_circuit/execution/balance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ mod test {
use mock::{generate_mock_call_bytecode, test_ctx::TestContext, MockCallBytecodeParams};

lazy_static! {
static ref TEST_ADDRESS: Address = address!("0xaabbccddee000000000000000000000000000000");
static ref TEST_ADDRESS: Address = address!("0xaabbccddeeffdeadbeef00000000000000000000");
}

#[test]
Expand Down
2 changes: 1 addition & 1 deletion zkevm-circuits/src/util/int_decomposition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ impl<F: Field, const N_LIMBS: usize> IntDecomposition<F, N_LIMBS> {
assert!(N_BYTES >= N_LIMBS);
if let Some(bytes) = bytes {
if N_BYTES > N_LIMBS {
for byte in &bytes[N_BYTES - N_LIMBS..] {
for byte in &bytes[N_LIMBS..] {
assert_eq!(*byte, 0);
}
}
Expand Down

0 comments on commit 1630508

Please sign in to comment.