Why no talking about gasCost in raffle contract? #4798
Unanswered
AtulBlockDev
asked this question in
Q&A
Replies: 2 comments
-
Gas cost can't be transferred to the lottery winner. Gas has already been spent to do the computation to execute the tax. However, in lottery contracts, you will transfer the entrance fee and the total amount to the lottery winner. I hope this make sense. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@AtulBlockDev Where exactly are you talking about? Point me to that location so I can clear your doubt. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I just have a simple question. Just like in fundMe contract, we added gasCost in ending deployer balance for the assertion process, why did not patrick did it for raffleWinner? because even raffleWinner have to spend some gas to enter the raffle? so how will the assertion equal will work without adding the gasCost?
Beta Was this translation helpful? Give feedback.
All reactions