fix call to union

This commit is contained in:
Danny Ryan 2019-03-05 16:18:41 -07:00
parent b5f0509595
commit b36e70040b
No known key found for this signature in database
GPG Key ID: 2765A792E42CE07A
1 changed files with 1 additions and 1 deletions

View File

@ -2010,7 +2010,7 @@ def get_previous_total_balance(state: BeaconState) -> Gwei:
def get_attesting_indices(state: BeaconState, attestations: List[PendingAttestation]) -> List[ValidatorIndex]:
output = set()
for a in attestations:
output = output.union([get_attestation_participants(state, a.data, a.aggregation_bitfield)])
output = output.union(get_attestation_participants(state, a.data, a.aggregation_bitfield))
return sorted(list(output))
```