metamask-mobile icon indicating copy to clipboard operation
metamask-mobile copied to clipboard

eth_signTypedData request

Open chendaxia65 opened this issue 3 years ago • 5 comments

Hello, when I use WalletConnect V2 to sign the eth_signTypedData request, MetaMask returns an error: {"code": -32603, "message": "Internal error"}

System: Android 10 WalletConnect V2 version: V1.13.0 MetaMask version: V7.1.0

chendaxia65 avatar Jul 07 '23 08:07 chendaxia65

What chain?

equalogix avatar Jul 11 '23 19:07 equalogix

Hello, @chendaxia65. Thanks for reporting! Please check if you still experience this after updating to the latest version from the Play Store. Thank you!

anaamolnar avatar Jul 20 '23 19:07 anaamolnar

Hello, @chendaxia65. Thanks for reporting! Please check if you still experience this after updating to the latest version from the Play Store. Thank you!

Hello, @anaamolnar . thanks for your reply, I updated the latest version of MetaMask, and got a new error when using eth_signTypedData for signing requests: {"code":-32603,"message":"Invalid message "data": [object Object] must be a valid array.","data":{"originalError":{}}}

System: Android 10 WalletConnect V2 version: V1.13.0 MetaMask version: V7.3.0(1144)

Request Data: (requestId=1689907270449432, sessionTopic=afde08bfe2983707ce0b396aec6fc1ae9f1bc00acf241b6fa6b10527a5c31420, method=eth_signTypedData, params=["0x5d827EEE04Ff97F4F8907D16cC8210d4ecbc7ed0",{"domain":{"chainId":1,"name":"Login","version":"1"},"message":{"contents":"www.openvoice.com wants you to sign in with your Ethereum account:\n0x5d827EEE04Ff97F4F8907D16cC8210d4ecbc7ed0\n\nSign in with Ethereum to the app.\n\nURI: https://www.openvoice.com\nVersion: 1\nChain ID: 1\nNonce: FEhfCpOGKmBrFJIl\nIssued At: 2023-07-21T02:41:10.406Z"},"primaryType":"Login","types":{"EIP712Domain":[{"name":"name","type":"string"},{"name":"version","type":"string"},{"name":"chainId","type":"uint256"}],"Login":[{"name":"contents","type":"string"}]}}], chainId=eip155:1)

chendaxia65 avatar Jul 21 '23 03:07 chendaxia65

Hi @chendaxia65 , could you please share a repo so that we can try to reproduce the issue directly?

abretonc7s avatar Oct 04 '23 09:10 abretonc7s

@chendaxia65 have you checked using chainId: 1 instead of chainId: eip155:1?

abretonc7s avatar Oct 11 '23 08:10 abretonc7s