Apply suggestions from code review

This commit is contained in:
Alex Stokes
2022-11-04 16:19:26 -06:00
committed by GitHub
parent 8488fb79d9
commit c8d1614e7e

View File

@@ -324,7 +324,7 @@ def process_withdrawals(state: BeaconState, payload: ExecutionPayload) -> None:
assert withdrawal == expected_withdrawal
decrease_balance(state, withdrawal.validator_index, withdrawal.amount)
if len(expected_withdrawals) > 0:
# withdrawal holds the last withdrawal object in the payload.
# `withdrawal` holds the last withdrawal object in the payload.
state.next_withdrawal_index = WithdrawalIndex(withdrawal.index + 1)
state.latest_withdrawal_validator_index = withdrawal.validator_index
```