Lesson 9: Error: No Contract deployed with name Raffle, deployer #632
Answered
by
dibakarsutradhar
BrysonHall
asked this question in
Q&A
-
I was doing the Patrick Collins tutorial link and got this error Raffle.test.js
01.deploy-raffle.js
|
Beta Was this translation helpful? Give feedback.
Answered by
dibakarsutradhar
Jun 28, 2022
Replies: 1 comment 3 replies
-
@BrysonHall The issue is in your The code should be like this - |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
BrysonHall
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@BrysonHall The issue is in your
Raffle.test.js
->beforeEach()
code block.When you're assigning the
Raffle
contract to theraffle
variables, you have a type error.The code should be like this -
raffle = await ethers.getContract("Raffle", deployer)