mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-02-20 22:38:11 +00:00
Fixed get generalized indices
This commit is contained in:
parent
59307d1380
commit
c6cdec8217
@ -142,7 +142,7 @@ def concat_generalized_indices(*indices: Sequence[GeneralizedIndex]) -> Generali
|
||||
"""
|
||||
o = GeneralizedIndex(1)
|
||||
for i in indices:
|
||||
o = o * get_previous_power_of_2(i) + i
|
||||
o = o * get_previous_power_of_2(i) + (i - get_previous_power_of_2(i))
|
||||
return o
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user