ferranbt / fastssz

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

`ssz.ExtendUint32` and `hh.AppendUint32` undefined error in the generated code #148

Closed po-bera closed 5 months ago

po-bera commented 5 months ago

Hi,

I have the following struct and use sszgen to generate ssz code for it:

type Container struct {
    List []uint32 `ssz-max:"100"`
}

However, the generated code has two errors:

Why does fastssz not support uint32 list?

ferranbt commented 5 months ago

Why does fastssz not support uint32 list?

There was never a use case for that. The main goal for sszgen is to be fully compatible with the Ethereum consensus types for which there are available unit tests.

Does #149 fixes your issue?

po-bera commented 5 months ago

Thanks for the answer @ferranbt. That makes sense.

149 fixes the issue.