Skip to content

Conversation

@turuslan
Copy link
Contributor

sszpp decoding breaks if type is not marked with ssz::ssz_variable_size_container.
Add assert to check fixed and variable size consistency.

#define SSZ_CONT(...)
+  static_assert(variable_size::value or ssz::tuple_all_fixed_size<decltype(t)>::value);

https://github.com/leanEthereum/leanSpec/blob/f57fca81ca3a4cf87ee39ab993694f297b7e9a3b/src/lean_spec/types/container.py#L45-L89

@turuslan turuslan requested a review from xDimon September 29, 2025 11:15
@turuslan turuslan closed this Oct 16, 2025
@turuslan turuslan deleted the fix/ssz_variable_size branch October 16, 2025 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants