fixing comment

This commit is contained in:
james-prysm 2024-07-02 15:51:29 -05:00
parent b31fa63a4a
commit b2cd3ce9a7
1 changed files with 3 additions and 2 deletions

View File

@ -90,7 +90,7 @@ def test_apply_pending_deposit_withdrawable_epoch_while_exited(spec, state):
def test_apply_pending_deposit_switch_to_compounding(spec, state):
amount = 100
# choose a value public key that's not in the validator set
# choose a value public key that's in the validator set
index = 0
withdrawal_credentials = spec.ETH1_ADDRESS_WITHDRAWAL_PREFIX + spec.hash(pubkeys[index])[1:]
compounding_credentials = spec.COMPOUNDING_WITHDRAWAL_PREFIX + spec.hash(pubkeys[index])[1:]
@ -113,4 +113,5 @@ def test_apply_pending_deposit_switch_to_compounding(spec, state):
assert spec.apply_pending_deposit(state,deposit) == True
# validator count should increase by 1
assert state.balances[0] == amount
assert state.validators[0].withdrawal_credentials == compounding_credentials
assert state.validators[0].withdrawal_credentials == compounding_credentials