ferranbt / fastssz

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

feat(unmarshal): Support unmarshaling list of non-pointer containers #151

Closed letonchanh closed 4 months ago

letonchanh commented 4 months ago

Previously, sszgen only supports lists of pointers to containers. Therefore, it generates invalid code for lists of non-pointer containers. This PR addresses that by adding * only if the list's element type is a reference.