From e14d40e956789634079949fc00335e396cccd26a Mon Sep 17 00:00:00 2001 From: Sally MacFarlane Date: Thu, 11 Jul 2024 21:24:49 +1000 Subject: [PATCH] Update EIP-7251: fix typos Merged by EIP-Bot. --- EIPS/eip-7251.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/EIPS/eip-7251.md b/EIPS/eip-7251.md index b947bdf83501e..aaf479a9b7680 100644 --- a/EIPS/eip-7251.md +++ b/EIPS/eip-7251.md @@ -61,7 +61,7 @@ The new consolidation request is an [EIP-7685](./eip-7685.md) request with type 2. `source_pubkey`: `Bytes48` 3. `target_pubkey`: `Bytes48` -The [EIP-7685](./eip-7685.md) encoding of a withdrawal request **MUST** be computed as the follows: +The [EIP-7685](./eip-7685.md) encoding of a withdrawal request **MUST** be computed as follows: ```python encoded = CONSOLIDATION_REQUEST_TYPE ++ rlp([source_address, source_pubkey, target_pubkey]) @@ -88,14 +88,14 @@ Specifically, the functionality is defined in pseudocode as the function `add_co ```python def add_consolidation_request(Bytes48: source_pubkey, Bytes48: target_pubkey): """ - Add consolidaiton request adds new request to the consolidation request queue, so long as a sufficient fee is provided. + Add consolidation request adds new request to the consolidation request queue, so long as a sufficient fee is provided. """ # Verify sufficient fee was provided. fee = get_fee() require(msg.value >= fee, 'Insufficient value for fee') - # Increment consolidaiton request count. + # Increment consolidation request count. count = sload(CONSOLIDATION_REQUEST_PREDEPLOY_ADDRESS, CONSOLIDATION_REQUEST_COUNT_STORAGE_SLOT) sstore(CONSOLIDATION_REQUEST_PREDEPLOY_ADDRESS, CONSOLIDATION_REQUEST_COUNT_STORAGE_SLOT, count + 1) @@ -111,7 +111,7 @@ def add_consolidation_request(Bytes48: source_pubkey, Bytes48: target_pubkey): ###### Fee calculation -The following pseudocode can compute the cost an individual consolidation request, given a certain number of excess consolidation requests. +The following pseudocode can compute the cost of an individual consolidation request, given a certain number of excess consolidation requests. ```python def get_fee() -> int: @@ -522,7 +522,7 @@ Address: 0x00b42dbF2194e931E80326D950320f7d9Dbeac02 #### Block processing -At the end of processing any execution block where `block.timestamp >= FORK_TIMESTAMP` (i.e. after processing all transactions and after performing the block body requests validations) clienst software **MUST** take the following steps: +At the end of processing any execution block where `block.timestamp >= FORK_TIMESTAMP` (i.e. after processing all transactions and after performing the block body requests validations) client software **MUST** take the following steps: 1. Call the contract as `SYSTEM_ADDRESS` and empty input data to trigger the system subroutine execute. 2. Check that consolidation requests in the [EIP-7685](./eip-7685.md) requests list matches the list returned from `dequeue_consolidation_requests()` function of the smart contract respecting the order of the returned requests. If this condition does not hold, the block **MUST** be deemed *invalid*.