mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-04-14 21:58:35 +00:00
This fixes a truncation bug that results in an invalid serialization of
empty EIP712.
For example:
```json
{
"method": "eth_signTypedData_v4",
"request": {
"types": {
"EIP712Domain": [
{
"name": "version",
"type": "string"
}
],
"Empty": []
},
"primaryType": "Empty",
"domain": {
"version": "0"
},
"message": {}
}
}
```
When calculating the type-hash for the stuct-hash, it will incorrectly
use `Empty)` instead of `Empty()`
|
||
|---|---|---|
| .. | ||
| apitypes | ||
| testdata | ||
| api.go | ||
| api_test.go | ||
| auditlog.go | ||
| cliui.go | ||
| gnosis_safe.go | ||
| signed_data.go | ||
| signed_data_test.go | ||
| stdioui.go | ||
| uiapi.go | ||
| validation.go | ||
| validation_test.go | ||