Skip to content

Commit 0220642

Browse files
trying to fix the linting
1 parent 03f9949 commit 0220642

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

specs/_features/eip7732/beacon-chain.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,9 @@ def get_indexed_payload_attestation(state: BeaconState, slot: Slot,
420420
**Note:** This is modified to accept `signed_envelope` as an additional parameter. The state transition has been broken in two parts, first importing a signed block and then importing an execution payload. Even though the order must be followed, importing of the signed block and the execution payload can be done independently.
421421

422422
```python
423-
def state_transition(state: BeaconState, signed_block: SignedBeaconBlock, signed_envelope: SignedExecutionPayloadEnvelope, validate_result: bool=True) -> None:
423+
def state_transition(state: BeaconState, signed_block: SignedBeaconBlock,
424+
signed_envelope: SignedExecutionPayloadEnvelope,
425+
validate_result: bool=True) -> None:
424426
block = signed_block.message
425427
# Process slots (including those with no blocks) since block
426428
process_slots(state, block.slot)
@@ -434,13 +436,13 @@ def state_transition(state: BeaconState, signed_block: SignedBeaconBlock, signed
434436
assert block.state_root == hash_tree_root(state)
435437
# Verify execution payload signature
436438
if validate_result:
437-
assert verify_execution_payload_envelope_signature(state, signed_envelope) # [New in EIP-7732]
439+
assert verify_execution_payload_envelope_signature(state, signed_envelope) # [New in EIP-7732]
438440
envelope = signed_envelope.envelope
439441
# Process execution payload
440-
process_execution_payload(state, envelope, EXECUTION_ENGINE) # [New in EIP-7732]
442+
process_execution_payload(state, envelope, EXECUTION_ENGINE) # [New in EIP-7732]
441443
# Verify state root
442444
if validate_result:
443-
assert envelope.state_root == hash_tree_root(state) # [New in EIP-7732]
445+
assert envelope.state_root == hash_tree_root(state) # [New in EIP-7732]
444446
```
445447

446448
```python

0 commit comments

Comments
 (0)