From 31badec8f0a7101648ef4ce0872c2d3e4ff7098d Mon Sep 17 00:00:00 2001 From: refi93 Date: Tue, 23 Jul 2024 14:45:40 +0200 Subject: [PATCH] fix: fix ethereum signTypedData result not matching Metamask --- src/ethereum.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ethereum.ts b/src/ethereum.ts index 1e7c1cc2..f6c4b801 100644 --- a/src/ethereum.ts +++ b/src/ethereum.ts @@ -76,7 +76,7 @@ const validateEthereumMsgResponse = function (res, req) { const digest = prehash ? prehash : encoded; const chainId = parseInt(input.payload.domain.chainId, 16); // Get recovery param with a `v` value of [27,28] by setting `useEIP155=false` - return addRecoveryParam(digest, sig, signer, { chainId }); + return addRecoveryParam(digest, sig, signer, { chainId, useEIP155: false }); } else { throw new Error('Unsupported protocol'); }