Skip to content

Commit 05117e5

Browse files
chore(spec-specs): fix typos in src/ethereum/ (ethereum#1965)
Co-authored-by: Carson <carson@binarycake.ca>
1 parent 1d11d8d commit 05117e5

413 files changed

Lines changed: 701 additions & 710 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/ethereum/ethash.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,8 +398,8 @@ def hashimoto_light(
398398
dataset_size: Uint,
399399
) -> Tuple[Bytes, Hash32]:
400400
"""
401-
Run the [`hashimoto`] algorithm by generating dataset item using the cache
402-
instead of loading the full dataset into main memory.
401+
Run the [`hashimoto`] algorithm by generating a dataset item using the
402+
cache instead of loading the full dataset into main memory.
403403
404404
#### Parameters
405405

src/ethereum/exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class InvalidBlock(EthereumException):
1818

1919
class StateWithEmptyAccount(EthereumException):
2020
"""
21-
Thrown when the state has empty account.
21+
Thrown when the state has an empty account.
2222
"""
2323

2424

src/ethereum/forks/amsterdam/blocks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ class Header:
152152

153153
number: Uint
154154
"""
155-
Block number, (height) in the chain.
155+
Block number (height) in the chain.
156156
"""
157157

158158
gas_limit: Uint
@@ -284,7 +284,7 @@ class Block:
284284
header: Header
285285
"""
286286
The block header containing metadata and cryptographic commitments. Refer
287-
[headers] for more details on the fields included in the header.
287+
to [headers] for more details on the fields included in the header.
288288
289289
[headers]: ref:ethereum.forks.amsterdam.blocks.Header
290290
"""

src/ethereum/forks/amsterdam/bloom.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
Introduction
99
------------
1010
11-
This modules defines functions for calculating bloom filters of logs. For the
11+
This module defines functions for calculating bloom filters of logs. For the
1212
general theory of bloom filters see e.g. `Wikipedia
1313
<https://en.wikipedia.org/wiki/Bloom_filter>`_. Bloom filters are used to allow
1414
for efficient searching of logs by address and/or topic, by rapidly

src/ethereum/forks/amsterdam/requests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Requests were introduced in EIP-7685 as a a general purpose framework for
2+
Requests were introduced in EIP-7685 as a general purpose framework for
33
storing contract-triggered requests. It extends the execution header and
44
body with a single field each to store the request information.
55
This inherently exposes the requests to the consensus layer, which can

src/ethereum/forks/amsterdam/state.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ def account_exists(state: State, address: Address) -> bool:
403403

404404
def account_has_code_or_nonce(state: State, address: Address) -> bool:
405405
"""
406-
Checks if an account has non zero nonce or non empty code.
406+
Checks if an account has non-zero nonce or non-empty code.
407407
408408
Parameters
409409
----------
@@ -415,7 +415,7 @@ def account_has_code_or_nonce(state: State, address: Address) -> bool:
415415
Returns
416416
-------
417417
has_code_or_nonce : `bool`
418-
True if the account has non zero nonce or non empty code,
418+
True if the account has non-zero nonce or non-empty code,
419419
False otherwise.
420420
421421
"""
@@ -551,7 +551,7 @@ def set_account_balance(state: State, address: Address, amount: U256) -> None:
551551
Address of the account whose balance needs to be set.
552552
553553
amount:
554-
The amount that needs to set in balance.
554+
The amount that needs to be set in the balance.
555555
556556
"""
557557

@@ -591,7 +591,7 @@ def set_code(state: State, address: Address, code: Bytes) -> None:
591591
The current state.
592592
593593
address:
594-
Address of the account whose code needs to be update.
594+
Address of the account whose code needs to be updated.
595595
596596
code:
597597
The bytecode that needs to be set.

src/ethereum/forks/amsterdam/trie.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ class BranchNode:
138138
def encode_internal_node(node: Optional[InternalNode]) -> Extended:
139139
"""
140140
Encodes a Merkle Trie node into its RLP form. The RLP will then be
141-
serialized into a `Bytes` and hashed unless it is less that 32 bytes
141+
serialized into a `Bytes` object and hashed unless it is less than 32 bytes
142142
when serialized.
143143
144144
This function also accepts `None`, representing the absence of a node,

src/ethereum/forks/amsterdam/vm/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class BlockOutput:
6666
receipts_trie : `ethereum.fork_types.Root`
6767
Trie root of all the receipts in the block.
6868
receipt_keys :
69-
Key of all the receipts in the block.
69+
Keys of all the receipts in the block.
7070
block_logs : `Bloom`
7171
Logs bloom of all the logs included in all the transactions of the
7272
block.

src/ethereum/forks/amsterdam/vm/eoa_delegation.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,6 @@ def set_delegation(message: Message) -> U256:
169169
----------
170170
message :
171171
Transaction specific items.
172-
env :
173-
External items required for EVM execution.
174172
175173
Returns
176174
-------

src/ethereum/forks/amsterdam/vm/gas.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def calculate_message_call_gas(
249249
account inside a message call.
250250
call_stipend :
251251
The amount of stipend provided to a message call to execute code while
252-
transferring value(ETH).
252+
transferring value (ETH).
253253
254254
Returns
255255
-------
@@ -305,7 +305,7 @@ def init_code_cost(init_code_length: Uint) -> Uint:
305305

306306
def calculate_excess_blob_gas(parent_header: Header) -> U64:
307307
"""
308-
Calculated the excess blob gas for the current block based
308+
Calculates the excess blob gas for the current block based
309309
on the gas used in the parent block.
310310
311311
Parameters

0 commit comments

Comments
 (0)