Skip to content

Commit 23699f5

Browse files
committed
Undo MAX_EB to MIN_AB switch in withdrawal helper
1 parent d71d9dd commit 23699f5

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tests/core/pyspec/eth2spec/test/helpers/withdrawals.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,7 @@ def set_validator_fully_withdrawable(spec, state, index, withdrawable_epoch=None
3030

3131
def set_eth1_withdrawal_credential_with_balance(spec, state, index, balance=None, address=None):
3232
if balance is None:
33-
if is_post_electra(spec):
34-
balance = spec.MIN_ACTIVATION_BALANCE
35-
else:
36-
balance = spec.MAX_EFFECTIVE_BALANCE
33+
balance = spec.MAX_EFFECTIVE_BALANCE
3734
if address is None:
3835
address = b'\x11' * 20
3936

0 commit comments

Comments
 (0)