You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I've been looking at your code.
I ask you a question.
How would you make a general frontend where both the owner of the lottery contract and the buyers can access?
And only show a getWinner button for the owner?
I am using ethers.js
and I'm not sure how to do it.
Thanks
The text was updated successfully, but these errors were encountered:
@damianlluch not sure if you still have this problem, but you could setup the frontend so that if connectedWallet == ownerWallet, then you show getWinner button or whatever.
Obvious security concerns if you're just doing this on the frontend, you have to make sure that it's just visual and that whatever actions owner takes have to be validated by backend (either blockchain or ur server)
Hi, I've been looking at your code.
I ask you a question.
How would you make a general frontend where both the owner of the lottery contract and the buyers can access?
And only show a getWinner button for the owner?
I am using ethers.js
and I'm not sure how to do it.
Thanks
The text was updated successfully, but these errors were encountered: