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/forks/amsterdam/block_access_lists.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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`].

Expand Down
2 changes: 1 addition & 1 deletion tests/amsterdam/eip7928_block_level_access_lists/spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading