We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e979438 commit bd6797eCopy full SHA for bd6797e
signer/core/apitypes/types.go
@@ -544,7 +544,7 @@ func parseBytes(encType interface{}) ([]byte, bool) {
544
// Handle array types.
545
val := reflect.ValueOf(encType)
546
if val.Kind() == reflect.Array && val.Type().Elem().Kind() == reflect.Uint8 {
547
- v := reflect.MakeSlice(reflect.TypeOf([]byte{}), val.Len(), val.Len())
+ v := reflect.ValueOf(make([]byte, val.Len()))
548
reflect.Copy(v, val)
549
return v.Bytes(), true
550
}
0 commit comments