Skip to content

Commit

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

0 comments on commit c854868

Please sign in to comment.