diff --git a/specs/electra/beacon-chain.md b/specs/electra/beacon-chain.md index 7c6d9fe1f..8dca8efa4 100644 --- a/specs/electra/beacon-chain.md +++ b/specs/electra/beacon-chain.md @@ -992,9 +992,9 @@ class NewPayloadRequest(object): def notify_new_payload(self: ExecutionEngine, execution_payload: ExecutionPayload, parent_beacon_block_root: Root, - execution_requests_list: list[bytes]) -> bool: + execution_requests_list: Sequence[bytes]) -> bool: """ - Return ``True`` if and only if ``execution_payload`` and ``execution_requests`` + Return ``True`` if and only if ``execution_payload`` and ``execution_requests`` are valid with respect to ``self.execution_state``. """ ... @@ -1145,7 +1145,7 @@ def process_withdrawals(state: BeaconState, payload: ExecutionPayload) -> None: *Note*: Encodes execution requests as defined by [EIP-7685](https://eips.ethereum.org/EIPS/eip-7685). ```python -def get_execution_requests_list(execution_requests: ExecutionRequests) -> list[bytes]: +def get_execution_requests_list(execution_requests: ExecutionRequests) -> Sequence[bytes]: deposit_bytes = serialize(execution_requests.deposits) withdrawal_bytes = serialize(execution_requests.withdrawals) consolidation_bytes = serialize(execution_requests.consolidations) diff --git a/specs/electra/validator.md b/specs/electra/validator.md index 169d3cdf5..fe9c143d0 100644 --- a/specs/electra/validator.md +++ b/specs/electra/validator.md @@ -54,7 +54,7 @@ class GetPayloadResponse(object): execution_payload: ExecutionPayload block_value: uint256 blobs_bundle: BlobsBundle - execution_requests: List[bytes] # [New in Electra] + execution_requests: Sequence[bytes] # [New in Electra] ``` ## Containers @@ -90,7 +90,7 @@ has been built since the corresponding call to `notify_forkchoice_updated` metho ```python def get_payload(self: ExecutionEngine, payload_id: PayloadId) -> GetPayloadResponse: """ - Return ExecutionPayload, uint256, BlobsBundle and List[bytes] objects. + Return ExecutionPayload, uint256, BlobsBundle and Sequence[bytes] objects. """ # pylint: disable=unused-argument ... @@ -194,10 +194,10 @@ in [EIP-7685](https://eips.ethereum.org/EIPS/eip-7685). The index of each elemen 2. Set `block.body.execution_requests = get_execution_requests(execution_requests)`, where: ```python -def get_execution_requests(execution_requests: List[bytes]) -> ExecutionRequests: +def get_execution_requests(execution_requests: Sequence[bytes]) -> ExecutionRequests: deposits = deserialize(List[DepositRequest, MAX_DEPOSIT_REQUESTS_PER_PAYLOAD], execution_requests[0]) withdrawals = deserialize(List[WithdrawalRequest, MAX_WITHDRAWAL_REQUESTS_PER_PAYLOAD], execution_requests[1]) - consolidations = deserialize(List[ConsolidationRequest, MAX_CONSOLIDATION_REQUESTS_PER_PAYLOAD], + consolidations = deserialize(List[ConsolidationRequest, MAX_CONSOLIDATION_REQUESTS_PER_PAYLOAD], execution_requests[2]) return ExecutionRequests(deposits, withdrawals, consolidations)