Skip to content

Commit

Permalink
Merge pull request #2048 from Web3Auth/fix/mpc-signTypedData-eip712do…
Browse files Browse the repository at this point in the history
…main

fix: signTypedData eip712domain
  • Loading branch information
himanshuchawla009 authored Jan 8, 2025
2 parents 80d5c72 + 45fef2f commit 636245e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ export function getProviderHandlers({
const chainId = await providerEngineProxy.request<unknown, string>({ method: "eth_chainId" });
await validateTypedSignMessageDataV4(msgParams, chainId);
const data = typeof msgParams.data === "string" ? JSON.parse(msgParams.data) : msgParams.data;
if (data.types.EIP712Domain) delete data.types.EIP712Domain;
const sig = signTypedData(sign, data, SignTypedDataVersion.V4);
return sig;
},
Expand Down

0 comments on commit 636245e

Please sign in to comment.