Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/ethereum/arrow_glacier/vm/instructions/memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

Implementations of the EVM Memory instructions.
"""
from ethereum.base_types import U8_MAX_VALUE, U256, Bytes
from ethereum.base_types import U256, Bytes

from .. import Evm
from ..gas import (
Expand Down Expand Up @@ -80,7 +80,7 @@ def mstore8(evm: Evm) -> None:

# OPERATION
evm.memory += b"\x00" * extend_memory.expand_by
normalized_bytes_value = Bytes([value & U8_MAX_VALUE])
normalized_bytes_value = Bytes([value & 0xFF])
memory_write(evm.memory, start_position, normalized_bytes_value)

# PROGRAM COUNTER
Expand Down
Loading