ferranbt / fastssz

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

External reference to `[]byte` type does not import package in generated code #166

Closed ferranbt closed 1 month ago

ferranbt commented 1 month ago

With an externa package like:

type External []byte

and the target ssz package like:

import "GitHub.com..../external"

type X struct {
   A external.External
}

The generated code creates the encodings but does not import "gitHub.com.../external".