Skip to content

Lesson 9: Error: No Contract deployed with name Raffle, deployer #632

Discussion options

You must be logged in to vote

@BrysonHall The issue is in your Raffle.test.js -> beforeEach() code block.
When you're assigning the Raffle contract to the raffle variables, you have a type error.

The code should be like this -
raffle = await ethers.getContract("Raffle", deployer)

Replies: 1 comment 3 replies

Comment options

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

@dibakarsutradhar
Comment options

@solyakin
Comment options

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