Skip to content

Lesson 7 problems with endLottery #183

Answered by cromewar
cromewar asked this question in Q&A
Discussion options

You must be logged in to vote

I solved, however I have another question

The problem was I was given wrong positional arguments to the constructor I had this:

def deploy_lottery():
    # id="crome-account"
    account = get_account()
    lottery = Lottery.deploy(
        get_contract("eth_usd_price_feed").address,
        get_contract("link_token").address,
        get_contract("vrf_coordinator").address,
        config["networks"][network.show_active()]["fee"],
        config["networks"][network.show_active()]["keyhash"],
        {"from": account},
        publish_source=config["networks"][network.show_active()].get("verify", False),
    )
    print("Deployed Lottery!")
    return lottery

Instead of:

def deploy_lottery(…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@PatrickAlphaC
Comment options

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