From 1feb1fbc0fc40f1f0248373ea24700f3a074ff4a Mon Sep 17 00:00:00 2001 From: james-prysm <90280386+james-prysm@users.noreply.github.com> Date: Fri, 26 Jul 2024 09:58:25 -0500 Subject: [PATCH] Update tests/core/pyspec/eth2spec/test/electra/epoch_processing/test_apply_pending_deposit.py Co-authored-by: Mikhail Kalinin --- .../test/electra/epoch_processing/test_apply_pending_deposit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/core/pyspec/eth2spec/test/electra/epoch_processing/test_apply_pending_deposit.py b/tests/core/pyspec/eth2spec/test/electra/epoch_processing/test_apply_pending_deposit.py index bcf1af84f..7f4ca30ec 100644 --- a/tests/core/pyspec/eth2spec/test/electra/epoch_processing/test_apply_pending_deposit.py +++ b/tests/core/pyspec/eth2spec/test/electra/epoch_processing/test_apply_pending_deposit.py @@ -13,7 +13,7 @@ def test_apply_pending_deposit_add_validator_to_registry(spec, state): amount = spec.MIN_ACTIVATION_BALANCE # select validator set outside of the mainnet preset of 256 - index = 2000 + index = len(state.validators) withdrawal_credentials = ( spec.BLS_WITHDRAWAL_PREFIX + spec.hash(pubkeys[index])[1:] )