mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-02-17 13:06:34 +00:00
explicitly cast to bool
This commit is contained in:
parent
79e34a00e8
commit
78a0e15e9c
@ -86,7 +86,7 @@ def unpack_compact_validator(compact_validator: CompactValidator) -> Tuple[Valid
|
|||||||
"""
|
"""
|
||||||
return (
|
return (
|
||||||
ValidatorIndex(compact_validator >> 16),
|
ValidatorIndex(compact_validator >> 16),
|
||||||
(compact_validator >> 15) % 2 == 0,
|
bool((compact_validator >> 15) % 2),
|
||||||
uint64(compact_validator & (2**15 - 1)),
|
uint64(compact_validator & (2**15 - 1)),
|
||||||
)
|
)
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user