Minor fix

This commit is contained in:
Hsiao-Wei Wang 2020-05-29 02:20:38 +08:00
parent 8ae7f5b6fa
commit bd9f983eea
No known key found for this signature in database
GPG Key ID: 95B070122902DEA4
1 changed files with 1 additions and 1 deletions

View File

@ -938,7 +938,7 @@ def get_indices_from_committee(
committee: List[ValidatorIndex, MAX_VALIDATORS_PER_COMMITTEE],
bits: Bitlist[MAX_VALIDATORS_PER_COMMITTEE]) -> Sequence[ValidatorIndex]:
assert len(bits) == len(committee)
return ([validator_index for i, validator_index in enumerate(committee) if bits[i]])
return [validator_index for i, validator_index in enumerate(committee) if bits[i]]
```
```python