Skip to content

Commit

Permalink
fix: signTypedData eip712domain
Browse files Browse the repository at this point in the history
  • Loading branch information
ieow committed Jan 2, 2025
1 parent 80d5c72 commit 45fef2f
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 45fef2f

Please sign in to comment.