diff --git a/src/lean_spec/spec/ssz/container.py b/src/lean_spec/spec/ssz/container.py index 5ea4edc22..6b4c83244 100644 --- a/src/lean_spec/spec/ssz/container.py +++ b/src/lean_spec/spec/ssz/container.py @@ -103,7 +103,7 @@ def deserialize(cls, stream: IO[bytes], scope: int) -> Self: # Phase 2: each variable payload spans from its offset to the next. # Scope closes the final span. - boundaries = [o for _, _, o in variable_fields] + [scope] + boundaries = [offset for _, _, offset in variable_fields] + [scope] for (name, field_type, _), (start, end) in zip( variable_fields, pairwise(boundaries), strict=True ):