File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -379,10 +379,9 @@ def get_expected_withdrawals(state: BeaconState) -> Sequence[Withdrawal]:
379379``` python
380380def process_withdrawals (state : BeaconState, payload : ExecutionPayload) -> None :
381381 expected_withdrawals = get_expected_withdrawals(state)
382- assert len ( payload.withdrawals) == len ( expected_withdrawals)
382+ assert payload.withdrawals == expected_withdrawals
383383
384- for expected_withdrawal, withdrawal in zip (expected_withdrawals, payload.withdrawals):
385- assert withdrawal == expected_withdrawal
384+ for withdrawal in expected_withdrawals:
386385 decrease_balance(state, withdrawal.validator_index, withdrawal.amount)
387386
388387 # Update the next withdrawal index if this block contained withdrawals
You can’t perform that action at this time.
0 commit comments