ferranbt / fastssz

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

Const sized byte array fail to generate #164

Open karalabe opened 1 month ago

karalabe commented 1 month ago

This is fine:

type Address [20]byte

This blows up with byte array definition not understood by go/ast

const AddressLength = 20
type Address [AddressLength]byte
ferranbt commented 1 month ago

Do you have a repro of the issue? It does work for me here.