Stephan pfp
Stephan
@stephancill
very farcaster-coded to have a $9/month dependency in the official frame sdk + example
1 reply
12 recasts
53 reactions

Stephan pfp
Stephan
@stephancill
love neynar, but this can (and should) be free
6 replies
7 recasts
38 reactions

jp 🎩 pfp
jp 🎩
@jpfraneto.eth
gm stephan how do i start playing with the debugger for frames v2? also: do you know how to fix this?
1 reply
0 recast
2 reactions

Stephan pfp
Stephan
@stephancill
Launch it with with this command npx @frames.js/debugger@latest For your wallet issue you need to switch chains before calling writeContract (easiest is to do it when the user connects their wallet)
1 reply
0 recast
2 reactions

jp 🎩 pfp
jp 🎩
@jpfraneto.eth
cc @deodad is there a specific event on the flow of the frames sdk that tells us "this is when the user connected their wallet"?
1 reply
0 recast
0 reaction

Stephan pfp
Stephan
@stephancill
Just do it when the connected address changes in a useEffect
1 reply
0 recast
0 reaction

jp 🎩 pfp
jp 🎩
@jpfraneto.eth
like so?
2 replies
0 recast
0 reaction

Tony D’Addeo  pfp
Tony D’Addeo
@deodad
don’t use window.ethereum as it won’t work on mobile use the sdk.wallet.ethProvider you can use sdk.wallet.ethProvider.on(“accountsChanged”, callback) to trigger a callback when accounts change see https://eips.ethereum.org/EIPS/eip-1193
0 reply
0 recast
2 reactions