Update signer/core/apitypes/types.go

pull/31049/head
jwasinger 2 weeks ago committed by Jared Wasinger
parent 4e721fb390
commit 8058ac5a16
  1. 1
      signer/core/apitypes/types.go

@ -506,6 +506,7 @@ func (typedData *TypedData) encodeArrayValue(encValue interface{}, encType strin
err error
)
if reflect.TypeOf(item).Elem().Kind() == reflect.Uint8 {
// the item type is bytes. encode the bytes array directly instead of recursing.
encodedData, err = typedData.EncodePrimitiveValue(parsedType, item, depth+1)
} else {
encodedData, err = typedData.encodeArrayValue(item, parsedType, depth+1)

Loading…
Cancel
Save