type annotation

This commit is contained in:
Potuz 2022-10-31 17:18:06 -03:00 committed by Hsiao-Wei Wang
parent 0f74ab5686
commit 5b92eae08f
No known key found for this signature in database
GPG Key ID: AE3D6B174F971DE4
1 changed files with 1 additions and 1 deletions

View File

@ -287,7 +287,7 @@ def get_expected_withdrawals(state: BeaconState) -> Sequence[Withdrawal]:
epoch = get_current_epoch(state)
withdrawal_index = state.next_withdrawal_index
index = ValidatorIndex((state.last_withdrawal_validator_index + 1) % len(state.validators))
ret: Sequence[Withdrawal] = []
ret: List[Withdrawal] = []
probed = 0
while (len(ret) < MAX_WITHDRAWALS_PER_PAYLOAD) and (probed < len(state.validators)):
val = state.validators[index]