Skip to content

Commit

Permalink
fix: fix ethereum signTypedData result not matching Metamask
Browse files Browse the repository at this point in the history
  • Loading branch information
refi93 committed Jul 23, 2024
1 parent df9cef6 commit 31badec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ethereum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down

0 comments on commit 31badec

Please sign in to comment.