From 99e2704c2c73d259df4be706d28a5cb908379b1e Mon Sep 17 00:00:00 2001 From: Potuz Date: Mon, 7 Nov 2022 17:56:01 -0300 Subject: [PATCH] make tests pass --- specs/capella/beacon-chain.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/capella/beacon-chain.md b/specs/capella/beacon-chain.md index 87dacc643e..c9c6a37e73 100644 --- a/specs/capella/beacon-chain.md +++ b/specs/capella/beacon-chain.md @@ -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: - latest_withdrawal = payload.withdrawals[-1] + latest_withdrawal = expected_withdrawals[-1] state.next_withdrawal_index = WithdrawalIndex(latest_withdrawal.index + 1) state.latest_withdrawal_validator_index = latest_withdrawal.validator_index ```