Fixed EIP-712 getPayload dropping EIP712Domain from types for JSON-RPC calls (#687).

This commit is contained in:
Richard Moore 2020-12-08 01:37:44 -05:00
parent 86b413750d
commit d3b1ac046a
No known key found for this signature in database
GPG Key ID: 665176BE8E9DC651

@ -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;
}