-
Hello, I have created a from brownie import FundMe
from scripts.helpful_scripts import get_account
def deploy_fund_me():
account = get_account()
fund_me = FundMe.deploy({"from": account})
print(f"Contract deployed to {fund_me.address}")
def main():
deploy_fund_me
-this is my helpful_scripts.py code:
from brownie import config, network, accounts
def get_account():
if network.show_active() == "development":
return accounts[0]
else:
return accounts.add(config["wallets"]["from_key"]) -this is my brownie-config.yaml code: dependencies:
- smartcontractkit/[email protected]
compiler:
solc:
remappings:
- "@chainlink=smartcontractkit/[email protected]"
dotenv: .env
wallets:
from_keys: ${PRIVATE_KEY} -this is my .env file: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Could you try printing all fundme and not just address? And the output please? |
Beta Was this translation helpful? Give feedback.
-
Hello @fricpto In your def main():
deploy_fund_me() |
Beta Was this translation helpful? Give feedback.
Hello @fricpto
In your
deploy
script you have just called function without()
, please correct your deploy code into below: