From 6a7bfe9b341baa5db9e8426430d16667a71bb467 Mon Sep 17 00:00:00 2001 From: james-prysm Date: Mon, 29 Jul 2024 10:49:57 -0500 Subject: [PATCH] removed wrong balance --- .../electra/epoch_processing/test_apply_pending_deposit.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 33dc775a5..a84153b51 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 @@ -47,8 +47,6 @@ def test_apply_pending_deposit_increases_balance(spec, state): amount=amount, slot=spec.GENESIS_SLOT ) - # reset the balance - state.balances[0] = 0 # run test spec.apply_pending_deposit(state, deposit) assert state.balances[0] == amount @@ -87,6 +85,7 @@ def test_apply_pending_deposit_switch_to_compounding(spec, state): slot=spec.GENESIS_SLOT, signature=deposit_data.signature, ) + state.balances[index] = 0 # run test spec.apply_pending_deposit(state, deposit) # validator balance should increase