ferranbt / fastssz

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

Handle multiple names in include structs #50

Closed ferranbt closed 3 years ago

ferranbt commented 3 years ago

Closes #49.

Same struct name is not allowed for the target structs to encode but it is for the include paths since there might be other structs not related to the encoding.

Now, all the structs both in the target file and the include paths are stored in an array and include both the package name and the name. Thus, storing multiple structs with the same name will not cause an issue.