Content pfp
Content
@
0 reply
0 recast
0 reaction

doug pfp
doug
@pfeffunit
Been tinkering on a frame with @reisub.eth and bumping into an erc20 approval flow question: if a user has already approved our contract to transfer the token, I’d like to not ask them to do it on subsequent uses. But on desktop WC we don’t know what wallet they’ll use. Could be anything in their Metamask for example. What’s best practice here? We could track the wallet their FID used last, and just assume that’s their wallet going forward?
3 replies
0 recast
2 reactions

Samuel pfp
Samuel
@samuellhuber.eth
Explainer for it in the decent docs I wrote https://docs.decent.xyz/development/integrations/farcaster
1 reply
0 recast
0 reaction

doug pfp
doug
@pfeffunit
hey thanks. that seems to demonstrate how to check for approval right? that's not the question actually, I'm more curious at determining the right wallet to check. did I miss it in there?
1 reply
0 recast
0 reaction

Samuel pfp
Samuel
@samuellhuber.eth
look at the account used in there. uses the wallet the user connects
1 reply
0 recast
0 reaction

doug pfp
doug
@pfeffunit
On desktop you can use any wallet though , unrelated to connected wallets
1 reply
0 recast
0 reaction