Fix typo in `get_start_shard`

This commit is contained in:
ericsson 2021-08-23 20:09:41 +03:00
parent 33552279bf
commit 34d42b640d
1 changed files with 1 additions and 1 deletions

View File

@ -520,7 +520,7 @@ def get_start_shard(state: BeaconState, slot: Slot) -> Shard:
"""
Return the start shard at ``slot``.
"""
epoch = compute_epoch_at_slot(Slot(_slot))
epoch = compute_epoch_at_slot(Slot(slot))
committee_count = get_committee_count_per_slot(state, epoch)
active_shard_count = get_active_shard_count(state, epoch)
return committee_count * slot % active_shard_count