Skip to content

Commit 56ea2f4

Browse files
fix imports, which detect a bug and fix get_active_validator_indices too
1 parent bc328c8 commit 56ea2f4

File tree

5 files changed

+15
-6
lines changed

5 files changed

+15
-6
lines changed

eth/beacon/helpers.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
)
3434
from eth.beacon.enums import (
3535
SignatureDomain,
36+
ValidatorRegistryDeltaFlag,
3637
)
3738
from eth.beacon.types.shard_committees import (
3839
ShardCommittee,
@@ -44,13 +45,13 @@
4445
import functools
4546

4647
from eth.beacon.typing import (
47-
ShardNumber,
48+
Bitfield,
4849
BLSPubkey,
50+
Ether,
51+
Gwei,
52+
ShardNumber,
4953
SlotNumber,
5054
ValidatorIndex,
51-
Bitfield,
52-
Gwei,
53-
Ether,
5455
)
5556

5657
if TYPE_CHECKING:
@@ -162,7 +163,7 @@ def get_active_validator_indices(
162163
#
163164
@to_tuple
164165
def _get_shards_committees_for_shard_indices(
165-
shard_indices: Sequence[Sequence[ShardNumber]],
166+
shard_indices: Sequence[Sequence[ValidatorIndex]],
166167
start_shard: ShardNumber,
167168
total_validator_count: int,
168169
shard_count: int) -> Iterable[ShardCommittee]:

eth/beacon/types/exits.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
uint384,
99
)
1010
from eth.beacon.typing import (
11-
SlotNumber,
1211
BLSSignature,
12+
SlotNumber,
13+
ValidatorIndex,
1314
)
1415
from eth.beacon.constants import EMPTY_SIGNATURE
1516

eth/beacon/types/shard_committees.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
)
1414
from eth.beacon.typing import (
1515
ShardNumber,
16+
ValidatorIndex,
1617
)
1718

1819

eth/beacon/types/shard_reassignment_records.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from eth.beacon.typing import (
88
SlotNumber,
99
ShardNumber,
10+
ValidatorIndex,
1011
)
1112

1213

eth/beacon/types/validator_registry_delta_block.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88
)
99
from eth.beacon.typing import (
1010
BLSPubkey,
11+
ValidatorIndex,
12+
)
13+
14+
from eth.beacon.enums import (
15+
ValidatorRegistryDeltaFlag,
1116
)
1217

1318
from eth.rlp.sedes import (

0 commit comments

Comments
 (0)