From 45fef2f0164e3553c0f7f9b4d90abec49de6b51f Mon Sep 17 00:00:00 2001 From: ieow Date: Thu, 2 Jan 2025 18:32:20 +0800 Subject: [PATCH] fix: signTypedData eip712domain --- .../src/providers/signingProviders/signingUtils.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/providers/ethereum-mpc-provider/src/providers/signingProviders/signingUtils.ts b/packages/providers/ethereum-mpc-provider/src/providers/signingProviders/signingUtils.ts index a82eb1595..6290c93d1 100644 --- a/packages/providers/ethereum-mpc-provider/src/providers/signingProviders/signingUtils.ts +++ b/packages/providers/ethereum-mpc-provider/src/providers/signingProviders/signingUtils.ts @@ -170,6 +170,7 @@ export function getProviderHandlers({ const chainId = await providerEngineProxy.request({ 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; },