Closed gorgos closed 2 years ago
Apparently metamask knows about this and a fix is shipped. Already working on firefox and will be working on chrome next week. Discussed here
The new version tries eth_signTypedData_v4 & eth_signTypedData
Let me know if anyone's still having issues
@dmihal I tried to fix it and the following changes made it work:
Change https://github.com/dmihal/eth-permit/blob/5dfcfa5caa20012943b16c73b39c32f04fb6e1cc/src/rpc.ts#L37 to
const result = await send(provider, 'eth_signTypedData', [fromAddress, JSON.parse(_typeData)]);
(two changes)Add
jsonrpc: '2.0',
to https://github.com/dmihal/eth-permit/blob/5dfcfa5caa20012943b16c73b39c32f04fb6e1cc/src/rpc.ts#L4.Do you have any insights on this?