Hi there! i am stuck a bit..
Actually my problem is that raffle.once('WinnerPicked' ) never called.
My main question is that i didnt get how should it works.
Because we invoke WinnerPicked inside Raffle contract, but fulfillRandomWords we invoke on vrfCoordinatorV2Mock contract (last row of code ex.) and vrfCoordinatorV2Mock event dont know about 'WinnerPicked' event (as per my understanding). So how come winnerPicket should be emmit here?
it works on video but doesnt works for me, i can not see console.log('pick winner') in console.
tried to debug it as well - instead of my custom WinenrPicker event - fullfillRandomWords emits "RandomWordsFulfilled" event which is stored in VrfCoordV2Mock contract
Hi there! i am stuck a bit.. Actually my problem is that raffle.once('WinnerPicked' ) never called.
My main question is that i didnt get how should it works.
Because we invoke WinnerPicked inside Raffle contract, but fulfillRandomWords we invoke on vrfCoordinatorV2Mock contract (last row of code ex.) and vrfCoordinatorV2Mock event dont know about 'WinnerPicked' event (as per my understanding). So how come winnerPicket should be emmit here?
it works on video but doesnt works for me, i can not see console.log('pick winner') in console.
tried to debug it as well - instead of my custom WinenrPicker event - fullfillRandomWords emits "RandomWordsFulfilled" event which is stored in VrfCoordV2Mock contract
so this is my contract
And here is tests