Skip to content

Foundry fundamentals : Issue in deploying lottery smart contract. #3116

Answered by EngrPips
Rayyan-Uddin asked this question in Q&A
Discussion options

You must be logged in to vote

Got this error while writing deployment script tried to debug but can't find anything, help.

Hello @Rayyan-Uddin, So the issue here is you are wrongly passing the arguments to the Raffle contract constructor. subscriptionId comes as the fifth argument in the Raffle contract constructor, but you are passing it as the sixth. Please pass the constructor argument in the correct order so things work correctly.

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
6 replies
@Rayyan-Uddin
Comment options

@EngrPips
Comment options

@sanu2002
Comment options

@Rayyan-Uddin
Comment options

@Rayyan-Uddin
Comment options

Comment options

You must be logged in to vote
2 replies
@Rayyan-Uddin
Comment options

@EngrPips
Comment options

Answer selected by Rayyan-Uddin
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