Closed lightclient closed 2 years ago
This was originally found in https://github.com/flashbots/go-boost-utils/pull/17
I never expected that aliases would be that popular. I will take a look.
This is a hard issue to solve. The unmarshaller uses this function to efficiently allocate the array, but the function expects []uint
type. I do not think the types can be casted.
However, something like this works:
type ArrayUint []uint64
type Case4 struct {
Val ArrayUint `ssz-size:"32"`
}
It seems like
sszgen
is not respecting the slice type when it is an alias of an integer. I think this has to do with one of the previous fixes that took advantage of the implicit conversion between the two.