Fix bug on BooleanBitfield decoding
This commit is contained in:
parent
1bbf4a86cb
commit
67f2850d37
@ -161,7 +161,8 @@ impl ssz::Decodable for BooleanBitfield {
|
|||||||
Ok((BooleanBitfield::new(),
|
Ok((BooleanBitfield::new(),
|
||||||
index + ssz::LENGTH_BYTES))
|
index + ssz::LENGTH_BYTES))
|
||||||
} else {
|
} else {
|
||||||
let b = BooleanBitfield::from(&bytes[(index + 4)..(len + 4)]);
|
let b = BooleanBitfield::
|
||||||
|
from(&bytes[(index + 4)..(index + len + 4)]);
|
||||||
let index = index + ssz::LENGTH_BYTES + len;
|
let index = index + ssz::LENGTH_BYTES + len;
|
||||||
Ok((b, index))
|
Ok((b, index))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user