• Kirill Smelkov's avatar
    go/neo/proto: protogen: Clarify criteria to detect []byte · b0c747c4
    Kirill Smelkov authored
    We previously used criteria that sizeof(typ.Elem()) == 1, but it would
    also trigger on e.g. `struct { x byte }` which we would not want to
    consider as byte array.
    
    -> Clarify the test to explicitly test for typ.Elem() == byte.
    No change in generated code.
    b0c747c4
protogen.go 33.2 KB