From 22b2a73615591cc60be95e85033d89ba4ded32ec Mon Sep 17 00:00:00 2001 From: ericsson Date: Wed, 16 Jun 2021 19:07:24 +0300 Subject: [PATCH] convert `int` to `CommitteeIndex` when passing to `get_beacon_committee` --- specs/sharding/beacon-chain.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/sharding/beacon-chain.md b/specs/sharding/beacon-chain.md index 98feba22b..56d18b0e7 100644 --- a/specs/sharding/beacon-chain.md +++ b/specs/sharding/beacon-chain.md @@ -784,7 +784,7 @@ def reset_pending_shard_work(state: BeaconState) -> None: for committee_index in range(committees_per_slot): shard = (start_shard + committee_index) % active_shards # a committee is available, initialize a pending shard-header list - committee_length = len(get_beacon_committee(state, slot, committee_index)) + committee_length = len(get_beacon_committee(state, slot, CommitteeIndex(committee_index))) state.shard_buffer[buffer_index][shard].change( selector=SHARD_WORK_PENDING, value=List[PendingShardHeader, MAX_SHARD_HEADERS_PER_SHARD](