widgets icon indicating copy to clipboard operation
widgets copied to clipboard

usepermit should return not_applicable if wallet doesnt support signtypeddata_v4

Open sirpy opened this issue 2 years ago • 2 comments
trafficstars

For wallet connect it is possible to check the returned supported methods, maybe it is possible to verify for other wallets in some other way https://github.com/Uniswap/widgets/blob/e66edb659a299bdee046afd3e49b294b8948e642/src/hooks/usePermit.ts#L138

maybe also allow the dev embedding the widget to force usage of approve

sirpy avatar Oct 24 '23 07:10 sirpy

anyone?

sirpy avatar Jul 23 '24 14:07 sirpy

with a wallet that doesnt support it, swapping works fine on app.uniswap.org but doesnt work with the widget

sirpy avatar Jul 23 '24 14:07 sirpy