New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(): signTypedData_v4 for metamask #1191
fix(): signTypedData_v4 for metamask #1191
Conversation
Why would this method be an exception? |
@pedrouid I could not test much. Here's what I know
So I created a specific condition for metamask and we have tested that it works now for metamask and all other wallets. It would be great if you could improve this PR since you understand the internals. I think this might already be solved in WC2 but it would take us a long time to integrate WC2. |
@midgerate Hi! I am searching for a solution to solve the same problem and I found this pull request, I wonder if I am able to test this locally in my project? |
@itm-penny At snapshot we use patch-package to make changes to all the build files and then make it work. You could technically use this fork that I created, publish it to npm and then use it. |
@midgerate Thanks! Will give it a try! |
@midgerate I tried changing the exact same part of the code and used patch-package to test it, and this solved my problem! Thank you so much for the solution, I've stuck in this problem for over a week. Hopefully this pull request gets merged ASAP, thanks again man! |
Thanks for making this PR @midgerate This issue comes down to a simple question. Why exactly is walletconnect taking an explicitly versioned request like “eth_signTypedData_v4”, and removing the version before sending it to the wallet? “eth_signTypedData” That seems like a bug. I can’t for the life of me figure out how one could decide to do that on purpose. |
@pedrouid could we get this reviewed and merged please. We need this change so that we can move to EIP712 on snapshot.org |
Any progress on this? |
Fixes issue where we are unable to sign transactions if its a typed array on metamask connected via walletconnect.
MetaMask/metamask-mobile#4441