This commit is contained in:
Conor Patrick 2026-02-24 21:54:48 -08:00 committed by GitHub
commit 15759c6f4a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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()