Skip to content

Commit

Permalink
typo: fix encode_account documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
tcoratger authored and SamWilsn committed Jul 3, 2024
1 parent 7df0ecd commit 4624c7b
Show file tree
Hide file tree
Showing 16 changed files with 32 additions and 48 deletions.
5 changes: 2 additions & 3 deletions src/ethereum/arrow_glacier/fork_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,9 @@ class Account:

def encode_account(raw_account_data: Account, storage_root: Bytes) -> Bytes:
"""
Encode `Account` dataclass.
Encode `Account` dataclass using RLP.
Storage is not stored in the `Account` dataclass, so `Accounts` cannot be
encoded with providing a storage root.
Note: Storage is not included in `Account`, so a storage root must be provided.
"""
return rlp.encode(
(
Expand Down
5 changes: 2 additions & 3 deletions src/ethereum/berlin/fork_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,9 @@ class Account:

def encode_account(raw_account_data: Account, storage_root: Bytes) -> Bytes:
"""
Encode `Account` dataclass.
Encode `Account` dataclass using RLP.
Storage is not stored in the `Account` dataclass, so `Accounts` cannot be
encoded with providing a storage root.
Note: Storage is not included in `Account`, so a storage root must be provided.
"""
return rlp.encode(
(
Expand Down
5 changes: 2 additions & 3 deletions src/ethereum/byzantium/fork_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,9 @@ class Account:

def encode_account(raw_account_data: Account, storage_root: Bytes) -> Bytes:
"""
Encode `Account` dataclass.
Encode `Account` dataclass using RLP.
Storage is not stored in the `Account` dataclass, so `Accounts` cannot be
encoded with providing a storage root.
Note: Storage is not included in `Account`, so a storage root must be provided.
"""
return rlp.encode(
(
Expand Down
5 changes: 2 additions & 3 deletions src/ethereum/cancun/fork_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,9 @@ class Account:

def encode_account(raw_account_data: Account, storage_root: Bytes) -> Bytes:
"""
Encode `Account` dataclass.
Encode `Account` dataclass using RLP.
Storage is not stored in the `Account` dataclass, so `Accounts` cannot be
encoded with providing a storage root.
Note: Storage is not included in `Account`, so a storage root must be provided.
"""
return rlp.encode(
(
Expand Down
5 changes: 2 additions & 3 deletions src/ethereum/constantinople/fork_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,9 @@ class Account:

def encode_account(raw_account_data: Account, storage_root: Bytes) -> Bytes:
"""
Encode `Account` dataclass.
Encode `Account` dataclass using RLP.
Storage is not stored in the `Account` dataclass, so `Accounts` cannot be
encoded with providing a storage root.
Note: Storage is not included in `Account`, so a storage root must be provided.
"""
return rlp.encode(
(
Expand Down
5 changes: 2 additions & 3 deletions src/ethereum/dao_fork/fork_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,9 @@ class Account:

def encode_account(raw_account_data: Account, storage_root: Bytes) -> Bytes:
"""
Encode `Account` dataclass.
Encode `Account` dataclass using RLP.
Storage is not stored in the `Account` dataclass, so `Accounts` cannot be
encoded with providing a storage root.
Note: Storage is not included in `Account`, so a storage root must be provided.
"""
return rlp.encode(
(
Expand Down
5 changes: 2 additions & 3 deletions src/ethereum/frontier/fork_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,9 @@ class Account:

def encode_account(raw_account_data: Account, storage_root: Bytes) -> Bytes:
"""
Encode `Account` dataclass.
Encode `Account` dataclass using RLP.
Storage is not stored in the `Account` dataclass, so `Accounts` cannot be
encoded with providing a storage root.
Note: Storage is not included in `Account`, so a storage root must be provided.
"""
return rlp.encode(
(
Expand Down
5 changes: 2 additions & 3 deletions src/ethereum/gray_glacier/fork_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,9 @@ class Account:

def encode_account(raw_account_data: Account, storage_root: Bytes) -> Bytes:
"""
Encode `Account` dataclass.
Encode `Account` dataclass using RLP.
Storage is not stored in the `Account` dataclass, so `Accounts` cannot be
encoded with providing a storage root.
Note: Storage is not included in `Account`, so a storage root must be provided.
"""
return rlp.encode(
(
Expand Down
5 changes: 2 additions & 3 deletions src/ethereum/homestead/fork_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,9 @@ class Account:

def encode_account(raw_account_data: Account, storage_root: Bytes) -> Bytes:
"""
Encode `Account` dataclass.
Encode `Account` dataclass using RLP.
Storage is not stored in the `Account` dataclass, so `Accounts` cannot be
encoded with providing a storage root.
Note: Storage is not included in `Account`, so a storage root must be provided.
"""
return rlp.encode(
(
Expand Down
5 changes: 2 additions & 3 deletions src/ethereum/istanbul/fork_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,9 @@ class Account:

def encode_account(raw_account_data: Account, storage_root: Bytes) -> Bytes:
"""
Encode `Account` dataclass.
Encode `Account` dataclass using RLP.
Storage is not stored in the `Account` dataclass, so `Accounts` cannot be
encoded with providing a storage root.
Note: Storage is not included in `Account`, so a storage root must be provided.
"""
return rlp.encode(
(
Expand Down
5 changes: 2 additions & 3 deletions src/ethereum/london/fork_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,9 @@ class Account:

def encode_account(raw_account_data: Account, storage_root: Bytes) -> Bytes:
"""
Encode `Account` dataclass.
Encode `Account` dataclass using RLP.
Storage is not stored in the `Account` dataclass, so `Accounts` cannot be
encoded with providing a storage root.
Note: Storage is not included in `Account`, so a storage root must be provided.
"""
return rlp.encode(
(
Expand Down
5 changes: 2 additions & 3 deletions src/ethereum/muir_glacier/fork_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,9 @@ class Account:

def encode_account(raw_account_data: Account, storage_root: Bytes) -> Bytes:
"""
Encode `Account` dataclass.
Encode `Account` dataclass using RLP.
Storage is not stored in the `Account` dataclass, so `Accounts` cannot be
encoded with providing a storage root.
Note: Storage is not included in `Account`, so a storage root must be provided.
"""
return rlp.encode(
(
Expand Down
5 changes: 2 additions & 3 deletions src/ethereum/paris/fork_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,9 @@ class Account:

def encode_account(raw_account_data: Account, storage_root: Bytes) -> Bytes:
"""
Encode `Account` dataclass.
Encode `Account` dataclass using RLP.
Storage is not stored in the `Account` dataclass, so `Accounts` cannot be
encoded with providing a storage root.
Note: Storage is not included in `Account`, so a storage root must be provided.
"""
return rlp.encode(
(
Expand Down
5 changes: 2 additions & 3 deletions src/ethereum/shanghai/fork_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,9 @@ class Account:

def encode_account(raw_account_data: Account, storage_root: Bytes) -> Bytes:
"""
Encode `Account` dataclass.
Encode `Account` dataclass using RLP.
Storage is not stored in the `Account` dataclass, so `Accounts` cannot be
encoded with providing a storage root.
Note: Storage is not included in `Account`, so a storage root must be provided.
"""
return rlp.encode(
(
Expand Down
5 changes: 2 additions & 3 deletions src/ethereum/spurious_dragon/fork_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,9 @@ class Account:

def encode_account(raw_account_data: Account, storage_root: Bytes) -> Bytes:
"""
Encode `Account` dataclass.
Encode `Account` dataclass using RLP.
Storage is not stored in the `Account` dataclass, so `Accounts` cannot be
encoded with providing a storage root.
Note: Storage is not included in `Account`, so a storage root must be provided.
"""
return rlp.encode(
(
Expand Down
5 changes: 2 additions & 3 deletions src/ethereum/tangerine_whistle/fork_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,9 @@ class Account:

def encode_account(raw_account_data: Account, storage_root: Bytes) -> Bytes:
"""
Encode `Account` dataclass.
Encode `Account` dataclass using RLP.
Storage is not stored in the `Account` dataclass, so `Accounts` cannot be
encoded with providing a storage root.
Note: Storage is not included in `Account`, so a storage root must be provided.
"""
return rlp.encode(
(
Expand Down

0 comments on commit 4624c7b

Please sign in to comment.