-
Hi, in the unit testes of raffle, i see that he assumes that account 2 will be the winner. I cant understand why is that., because he is calling performUpKeep that requests the random number first. |
Beta Was this translation helpful? Give feedback.
Answered by
pacelliv
Jan 29, 2023
Replies: 1 comment 2 replies
-
Hi @h0leee Actually there's no assumption -- the |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
h0leee
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @h0leee
Actually there's no assumption -- the
VRFCoordinatorV2Mock
it's just a contract to replicate/mock a few functions from the real contract. In our local blockchain there's no randomness the first account to enter the raffle will be the winner.