From 5b71eb4ee0f96d8b563222b4c9c3013fe7e647d3 Mon Sep 17 00:00:00 2001 From: 4l0n50 Date: Tue, 9 Jan 2024 11:48:30 +0100 Subject: [PATCH] Address review comments --- evm/src/cpu/kernel/constants/mod.rs | 2 +- evm/src/cpu/kernel/interpreter.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/evm/src/cpu/kernel/constants/mod.rs b/evm/src/cpu/kernel/constants/mod.rs index 3386865a..f6f021db 100644 --- a/evm/src/cpu/kernel/constants/mod.rs +++ b/evm/src/cpu/kernel/constants/mod.rs @@ -97,7 +97,7 @@ const MISC_CONSTANTS: [(&str, [u8; 32]); 3] = [ hex!("0000000000000000000000000000000100000000000000000000000000000000"), ), // Position in SEGMENT_RLP_RAW where the empty node encoding is stored. It is - // equal to u32::MAX + @SEGMENT_RLP_RAW so that all rlp pointers are much smaller than that + // equal to u32::MAX + @SEGMENT_RLP_RAW so that all rlp pointers are much smaller than that. ( "ENCODED_EMPTY_NODE_POS", hex!("0000000000000000000000000000000000000000000000000000000CFFFFFFFF"), diff --git a/evm/src/cpu/kernel/interpreter.rs b/evm/src/cpu/kernel/interpreter.rs index b85ac176..b99ccaeb 100644 --- a/evm/src/cpu/kernel/interpreter.rs +++ b/evm/src/cpu/kernel/interpreter.rs @@ -1196,7 +1196,7 @@ impl<'a> Interpreter<'a> { self.generation_state.registers.context = context; } - /// Writes the encoding of 0 to position @ENCODED_EMPTY_NODE_POS + /// Writes the encoding of 0 to position @ENCODED_EMPTY_NODE_POS. pub(crate) fn initialize_rlp_segment(&mut self) { self.generation_state.memory.set( MemoryAddress::new(0, Segment::RlpRaw, 0xFFFFFFFF),