Content pfp
Content
@
https://warpcast.com/~/channel/frames-devs
0 reply
0 recast
0 reaction

Greg pfp
Greg
@greg
how are frame devs doing ERC20 approval flows?
7 replies
0 recast
33 reactions

Matthew Fox 🌐 pfp
Matthew Fox 🌐
@matthewfox
Like this Both actions same screen, approve loops back on route and mint proceeds to a watch tx stage *I should have made he button actions change to highlight actions better https://mint.enjoyment.network
1 reply
0 recast
1 reaction

Greg pfp
Greg
@greg
what if the user approved once and then tries to mint again? have you figured out a way to check for approvals or you just make the user do it every time?
4 replies
0 recast
0 reaction

K pfp
K
@kijijij
This can be done @greg , when User clicks txn button, backend will receive connected address, you can check if connected address has enough allowance to transfer the funds. ERC20.allowance() should help checking the allowance.
0 reply
0 recast
0 reaction