Skip to content

Commit

Permalink
Move doc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
slowli committed Sep 18, 2024
1 parent 1ae1ba8 commit e523bce
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/vm2/src/single_instruction_test/into_zk_evm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,6 @@ pub struct MockMemory {
heap_write: Option<ExpectedHeapValue>,
}

// One arbitrary heap value is not enough for zk_evm
// because it reads two U256s to read one U256.
#[derive(Debug, Copy, Clone)]
pub(crate) struct ExpectedHeapValue {
heap: u32,
Expand All @@ -102,6 +100,7 @@ pub(crate) struct ExpectedHeapValue {

impl ExpectedHeapValue {
/// Returns a new U256 that contains data from the heap value and zero elsewhere.
/// One arbitrary heap value is not enough for `zk_evm` because it reads two U256s to read one U256.
fn partially_overlapping_u256(&self, start: u32) -> U256 {
let mut read = [0; 32];
for i in 0..32 {
Expand Down

0 comments on commit e523bce

Please sign in to comment.