Skip to content

Lesson 9: Issue with: Error VM Exception while processing transaction: reverted with custom error 'InvalidConsumer()' #5695

Answered by Nlferu
Glow-in-the-dark asked this question in Q&A
Discussion options

You must be logged in to vote

Additionally I think you are missing adding consumer in your deploy script:

await vrfCoordinatorV2Mock.addConsumer(subscriptionId, raffle.address)

Without this your subscriptionId will throw you invalidConsumer as it is not added to vrf list. You can additionally checkout my repo here for fully automated process for all networks.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Nlferu
Comment options

Answer selected by Glow-in-the-dark
@Glow-in-the-dark
Comment options

@Nlferu
Comment options

@Nlferu
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
2 participants