review suggestion from @hwwhww

Co-authored-by: Hsiao-Wei Wang <hsiaowei.eth@gmail.com>
This commit is contained in:
Danny Ryan 2022-09-20 08:18:42 -06:00
parent 70f90c5296
commit 91ea9e6959
No known key found for this signature in database
GPG Key ID: 2765A792E42CE07A

View File

@ -28,3 +28,9 @@ def test_success_top_up_to_withdrawn_validator(spec, state):
yield from run_deposit_processing(spec, state, deposit, validator_index)
state.balances[validator_index] == amount
state.validators[validator_index].effective_balance == 0
validator = state.validators[validator_index]
balance = state.balances[validator_index]
current_epoch = spec.get_current_epoch(state)
assert spec.is_fully_withdrawable_validator(validator, balance, current_epoch)