-
Beta Was this translation helpful? Give feedback.
Answered by
cromewar
Oct 12, 2021
Replies: 1 comment 1 reply
-
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():
# id="crome-account"
account = get_account()
lottery = Lottery.deploy(
get_contract("eth_usd_price_feed").address,
get_contract("vrf_coordinator").address,
get_contract("link_token").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 vrf_coordinator and link_token were misplaced, so I wonder is there any way to change the constructor to receive Any advice is welcome, Thanks :D |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
cromewar
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I solved, however I have another question
The problem was I was given wrong positional arguments to the constructor I had this:
Instead of: