Skip to content

Commit

Permalink
Fixed EIP-712 getPayload dropping EIP712Domain from types for JSON-RP…
Browse files Browse the repository at this point in the history
…C calls (#687).
  • Loading branch information
ricmoo committed Dec 8, 2020
1 parent 86b4137 commit d3b1ac0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/hash/src.ts/typed-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit d3b1ac0

Please sign in to comment.