mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 19:00:46 +00:00
apitypes: fix truncation of opening parenthesis
This commit is contained in:
parent
1e9dfd5bb0
commit
9667891b7f
1 changed files with 3 additions and 1 deletions
|
|
@ -432,7 +432,9 @@ func (typedData *TypedData) EncodeType(primaryType string) hexutil.Bytes {
|
||||||
buffer.WriteString(obj.Name)
|
buffer.WriteString(obj.Name)
|
||||||
buffer.WriteString(",")
|
buffer.WriteString(",")
|
||||||
}
|
}
|
||||||
buffer.Truncate(buffer.Len() - 1)
|
if len(typedData.Types[dep]) > 0 {
|
||||||
|
buffer.Truncate(buffer.Len() - 1)
|
||||||
|
}
|
||||||
buffer.WriteString(")")
|
buffer.WriteString(")")
|
||||||
}
|
}
|
||||||
return buffer.Bytes()
|
return buffer.Bytes()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue