Skip to content

Lesson 9: No Contract deployed with name lottery #5072

Answered by paulcoffee85
margelatufml asked this question in Q&A
Discussion options

You must be logged in to vote

Looks like you need to declare: subscribtionId = transactionReceipt.events[0].args.subId
Also, entranceFEE = entranceFee in hardhat, might want to keep those all the same in every file including contract.
Test after changes and see if that works.

In 'lottery.test.js' You could use this line:
deployer = (await getNamedAccounts()).deployer
or the line you have:
const { deployer } = await getNamedAccounts() but add a declaration for 'deployer' after describe().

At end of 'deploy-lottery', need an 's' in tags
module.exports.tag = ["all", "lottery"]

Just glanced in your helper-hardhat as well. Looks like 'subscription misspelled.

    5: {
        name: "goereli",
        vrfCoordinatorV2: "0x2…

Replies: 1 comment 2 replies

Comment options

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

@paulcoffee85
Comment options

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