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

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
4l0n50 committed Jan 9, 2024
1 parent 3c699be commit 5b71eb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion evm/src/cpu/kernel/constants/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down
2 changes: 1 addition & 1 deletion evm/src/cpu/kernel/interpreter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 5b71eb4

Please sign in to comment.