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

Commit

Permalink
correct block hash assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
DreamWuGit committed Jan 6, 2022
1 parent c21fa18 commit 7429811
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zkevm-circuits/src/evm_circuit/witness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ impl<F: FieldExt> BlockContext<F> {
.map(|(idx, hash)| {
[
F::from(BlockContextFieldTag::BlockHash as u64),
self.block_number + F::from((idx - 1) as u64),
self.block_number - F::from((idx + 1) as u64),
RandomLinearCombination::random_linear_combine(
hash.to_le_bytes(),
randomness,
Expand Down

0 comments on commit 7429811

Please sign in to comment.