From 23699f596da62980d650c63f9a47feec247c8f56 Mon Sep 17 00:00:00 2001 From: Mikhail Kalinin Date: Thu, 19 Sep 2024 10:44:38 +0400 Subject: [PATCH] Undo MAX_EB to MIN_AB switch in withdrawal helper --- tests/core/pyspec/eth2spec/test/helpers/withdrawals.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/core/pyspec/eth2spec/test/helpers/withdrawals.py b/tests/core/pyspec/eth2spec/test/helpers/withdrawals.py index 6247c5476..0ce476c86 100644 --- a/tests/core/pyspec/eth2spec/test/helpers/withdrawals.py +++ b/tests/core/pyspec/eth2spec/test/helpers/withdrawals.py @@ -30,10 +30,7 @@ def set_validator_fully_withdrawable(spec, state, index, withdrawable_epoch=None def set_eth1_withdrawal_credential_with_balance(spec, state, index, balance=None, address=None): if balance is None: - if is_post_electra(spec): - balance = spec.MIN_ACTIVATION_BALANCE - else: - balance = spec.MAX_EFFECTIVE_BALANCE + balance = spec.MAX_EFFECTIVE_BALANCE if address is None: address = b'\x11' * 20