Fixed EIP-712 getPayload dropping EIP712Domain from types for JSON-RPC calls (#687).
This commit is contained in:
parent
86b413750d
commit
d3b1ac046a
@ -463,6 +463,8 @@ export class TypedDataEncoder {
|
||||
|
||||
const typesWithDomain = shallowCopy(types);
|
||||
if (typesWithDomain.EIP712Domain) {
|
||||
logger.throwArgumentError("types must not contain EIP712Domain type", "types.EIP712Domain", types);
|
||||
} else {
|
||||
typesWithDomain.EIP712Domain = domainTypes;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user