mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 15:47:21 +00:00
Merge 9667891b7f into 2a45272408
This commit is contained in:
commit
15759c6f4a
1 changed files with 3 additions and 1 deletions
|
|
@ -454,7 +454,9 @@ func (typedData *TypedData) EncodeType(primaryType string) hexutil.Bytes {
|
|||
buffer.WriteString(obj.Name)
|
||||
buffer.WriteString(",")
|
||||
}
|
||||
buffer.Truncate(buffer.Len() - 1)
|
||||
if len(typedData.Types[dep]) > 0 {
|
||||
buffer.Truncate(buffer.Len() - 1)
|
||||
}
|
||||
buffer.WriteString(")")
|
||||
}
|
||||
return buffer.Bytes()
|
||||
|
|
|
|||
Loading…
Reference in a new issue