diff --git a/ssz-rs/src/bitlist.rs b/ssz-rs/src/bitlist.rs index 3eb42e08..b26b7a57 100644 --- a/ssz-rs/src/bitlist.rs +++ b/ssz-rs/src/bitlist.rs @@ -201,6 +201,7 @@ impl GeneralizedIndexable for Bitlist { } let chunk_position = i / 256; let child = parent * + 2 * get_power_of_two_ceil(::chunk_count()) + chunk_position; // NOTE: use `bool` as effective type of element