From 62bc7241bad32358ebd7f68cb3341ecb7980173a Mon Sep 17 00:00:00 2001 From: Alex Stokes Date: Fri, 29 Mar 2024 18:57:23 -0600 Subject: [PATCH] bugfix: generalized indices for `Bitlist` --- ssz-rs/src/bitlist.rs | 1 + 1 file changed, 1 insertion(+) 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