ferranbt / fastssz

Fast Ethereum2.0 SSZ encoder/decoder
MIT License
73 stars 44 forks source link

bug(generator): Generator cannot infer `ssz-size` for fixed length bytes. #153

Closed itsdevbear closed 4 months ago

itsdevbear commented 4 months ago

This is a potential footgun as it will generate a valid type. However this type is treated as a composite.

Recommendation:

image

image

Testcase here: https://github.com/ferranbt/fastssz/pull/154

ferranbt commented 4 months ago

Does #155 fixes the issue?