Merge pull request #770 from ralexstokes/fix-type-bug

Helper function returns correct type of `Gwei` instead of indices
This commit is contained in:
Danny Ryan
2019-03-13 19:38:40 -06:00
committed by GitHub

View File

@@ -1719,7 +1719,7 @@ def get_attesting_indices(state: BeaconState, attestations: List[PendingAttestat
```
```python
def get_attesting_balance(state: BeaconState, attestations: List[PendingAttestation]) -> List[ValidatorIndex]:
def get_attesting_balance(state: BeaconState, attestations: List[PendingAttestation]) -> Gwei:
return get_total_balance(state, get_attesting_indices(state, attestations))
```