Skip to content

Commit 2a163ad

Browse files
committed
Fix lint errors
1 parent bc3ee13 commit 2a163ad

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

specs/electra/validator.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,8 @@ in [EIP-7685](https://eips.ethereum.org/EIPS/eip-7685). The index of each elemen
197197
def get_execution_requests(execution_requests: List[bytes]) -> ExecutionRequests:
198198
deposits = deserialize(List[DepositRequest, MAX_DEPOSIT_REQUESTS_PER_PAYLOAD], execution_requests[0])
199199
withdrawals = deserialize(List[WithdrawalRequest, MAX_WITHDRAWAL_REQUESTS_PER_PAYLOAD], execution_requests[1])
200-
consolidations = deserialize(List[ConsolidationRequest, MAX_CONSOLIDATION_REQUESTS_PER_PAYLOAD], execution_requests[2])
200+
consolidations = deserialize(List[ConsolidationRequest, MAX_CONSOLIDATION_REQUESTS_PER_PAYLOAD],
201+
execution_requests[2])
201202

202203
return ExecutionRequests(deposits, withdrawals, consolidations)
203204
```

tests/core/pyspec/eth2spec/utils/ssz/ssz_impl.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@
88
def serialize(obj: View) -> bytes:
99
return obj.encode_bytes()
1010

11+
1112
def deserialize(cls: View, data: bytes) -> object:
1213
return cls.decode_bytes(data)
1314

15+
1416
def hash_tree_root(obj: View) -> Bytes32:
1517
return Bytes32(obj.get_backing().merkle_root())
1618

0 commit comments

Comments
 (0)