Open itsdevbear opened 4 months ago
Currently, decodeASTStruct
does not consider TypeParams
of ast.TypeSpec
. That's why structs with generics cannot be generated. To support generics, I think fastssz
also needs to decode TypeParams
.
Do you have an elaborated set of examples on how do you want to use generics? I am trying to understand the full scope. The example in #160 should be fairly easy to handle in itself.
Generator blows up really hard on generics, would be nice to handle.