mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 17:33:47 +00:00
Update signer/core/apitypes/types.go
This commit is contained in:
parent
4e721fb390
commit
8058ac5a16
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Reference in a new issue