-
|
hi,just after my last issue i have moved the deploy mocks function into helpful_scripts.py, it is now giving me this error when i try to deploy. i have as usual tried to delete build and recompile... |
Beta Was this translation helpful? Give feedback.
Answered by
cromewar
Jan 19, 2022
Replies: 2 comments 4 replies
-
from brownie import network, config, FundMe, MockV3Aggregator
from scripts.helpful_scripts import get_account, deploy_mocks
from web3 import Web3
def deploy_fund_me():
account = get_account()
if network.show_active() != "development":
price_feed_address = config["networks"][network.show_active()][
"eth_usd_price_feed"
]
else:
deploy_mocks()
price_feed_address = MockV3Aggregator[-1].address
fund_me = FundMe.deploy(
{"from": account},
publish_source=config["networks"][network.show_active()].get("verify"),
)
print(f"Contract deploy to {fund_me.address}")
def main():
deploy_fund_me() |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Hello @mattwilsonbmx is saying that the MockV3 does not have a deploy method, did you run |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
cromewar
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello @mattwilsonbmx is saying that the MockV3 does not have a deploy method, did you run
brownie compileafter copying the contract ? because if you forgot it, it won't be recognized as a contract.