diff --git a/src/ethereum/forks/amsterdam/block_access_lists.py b/src/ethereum/forks/amsterdam/block_access_lists.py index 38cc698b10f..095a9832dc8 100644 --- a/src/ethereum/forks/amsterdam/block_access_lists.py +++ b/src/ethereum/forks/amsterdam/block_access_lists.py @@ -18,7 +18,7 @@ from ethereum_rlp import rlp from ethereum_types.bytes import Bytes, Bytes32 from ethereum_types.frozen import slotted_freezable -from ethereum_types.numeric import U64, U256, Uint +from ethereum_types.numeric import U32, U64, U256, Uint from ethereum.crypto.hash import Hash32, keccak256 from ethereum.state import EMPTY_CODE_HASH, Account, Address, PreState @@ -46,7 +46,7 @@ Bytecode associated with an [`Account`](ref:ethereum.state.Account). """ -BlockAccessIndex: TypeAlias = U64 +BlockAccessIndex: TypeAlias = U32 """ Position within the set of all changes in a [`Block`]. diff --git a/tests/amsterdam/eip7928_block_level_access_lists/spec.py b/tests/amsterdam/eip7928_block_level_access_lists/spec.py index bbb875d8b54..2eac6b26b3b 100644 --- a/tests/amsterdam/eip7928_block_level_access_lists/spec.py +++ b/tests/amsterdam/eip7928_block_level_access_lists/spec.py @@ -39,6 +39,6 @@ class Spec: HASH_SIZE: int = 32 # Hash size in bytes # Numeric type limits - MAX_TX_INDEX: int = 2**64 - 1 # uint64 max value + MAX_TX_INDEX: int = 2**32 - 1 # uint32 max value MAX_BALANCE: int = 2**128 - 1 # uint128 max value MAX_NONCE: int = 2**64 - 1 # uint64 max value