Skip to content

Lesson 9 lottery contract unit Testing error #2686

Answered by othaime-en
soumalya340 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @soumalya340 replace new with await in the lines below

raffle = new ethers.getContract("Raffle", deployer)
vrfCoordinatorMock = new ethers.getContract("VRFCoordinatorV2Mock", deployer)

It should be

raffle = await ethers.getContract("Raffle", deployer)
vrfCoordinatorMock = await ethers.getContract("VRFCoordinatorV2Mock", deployer)

Replies: 3 comments 15 replies

Comment options

You must be logged in to vote
10 replies
@soumalya340
Comment options

@soumalya340
Comment options

@alymurtazamemon
Comment options

@alymurtazamemon
Comment options

@soumalya340
Comment options

Comment options

You must be logged in to vote
3 replies
@RoboCrypter
Comment options

@soumalya340
Comment options

@soumalya340
Comment options

Answer selected by soumalya340
Comment options

You must be logged in to vote
2 replies
@RoboCrypter
Comment options

@othaime-en
Comment options

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