You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Structures without members are not encoded properly
The JSON RPC API specification for 'eth_signTypedData_v4' does not
explicitly state that the required struct 'EIP712Domain' has to define
any members [1]. The current implementation cannot correctly encode
such a structure, as it assumes that at least one member has been
parsed and added to the struct's string representation.
Structures without members are not encoded properly
The JSON RPC API specification for 'eth_signTypedData_v4' does not
explicitly state that the required struct 'EIP712Domain' has to define
any members [1]. The current implementation cannot correctly encode
such a structure, as it assumes that at least one member has been
parsed and added to the struct's string representation.
[1] https://eips.ethereum.org/EIPS/eip-712#specification-of-the-eth_signtypeddata-json-rpc
Steps To Reproduce
Pass a valid structured data object where a type structure lacks a member:
Expected behavior
The internal function
encodeStruct
should return"EIP712Domain()"
when encodingEIP712Domain
.Actual behavior
The internal function returns
"EIP712Domain)"
Environment
4.8.8-android
. Reproduced on masterac0618c4d38ca780a7781d58255ff8b38626d7fc
The text was updated successfully, but these errors were encountered: