Skip to content

Lesson 9 : Raffle deploy error. #2758

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

You must be logged in to vote

Hey @Cronk123 First of all, there is a problem on line 13. Remove the {} on chainId. The line const { chainId } =network.config.chainId; should be const chainId = network.config.chainId;
I see the problem is coming from line 34. Make sure the entranceFee value is fetched correctly from your helper-hardhat-config.js If you feel it is okay, share a link to your github repo we'll help you look into it.
Another thing, you are fetching your verify function from helper-hardhat-config from sheer memory I'm guessing it should be in ../util/verify instead. Just check if you are fetching it correctly.
Third, as @ashrth has pointed out above, remove the backticks (``) in this line ["all", "raffle"];

Replies: 3 comments 10 replies

Comment options

You must be logged in to vote
0 replies
Comment options

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

@ashrth
Comment options

Comment options

You must be logged in to vote
8 replies
@Cronk123
Comment options

@othaime-en
Comment options

@Cronk123
Comment options

@krakxn
Comment options

@othaime-en
Comment options

Answer selected by Cronk123
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