Skip to content
Discussion options

You must be logged in to vote

@Sanyam2103 in your unit tests file you forgot to add raffle.address in the last line
change this line

   await vrfCoordinatorV2Mock.fulfillRandomWords(txReceipt.events[1].args.requestId)

you need to change that to this

     await vrfCoordinatorV2Mock.fulfillRandomWords(
                          txRecipt.events[1].args.requestId,
                          raffle.address
                      )

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Sanyam2103
Comment options

Answer selected by Sanyam2103
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants