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 (
|
||||
ValidatorIndex(compact_validator >> 16),
|
||||
(compact_validator >> 15) % 2 == 0,
|
||||
bool((compact_validator >> 15) % 2),
|
||||
uint64(compact_validator & (2**15 - 1)),
|
||||
)
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue