##lesson5: doesnt display the account created in code #197
-
| (venv) PS D:\Solidity\brownie_simple_storage> brownie run scripts/deploy.py BrownieSimpleStorageProject is the active project. Running 'scripts\deploy.py::main'... deploy.py from brownie import accounts
def deploy_simple_storage():
    account = accounts.load("freecodecamp-account")
    print("account")
def main():
    print("Hello!")it just prints hello and exits. | 
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
| Did you set up the account in brownie? 
 make sure to provide a secret key and a password. Additionally don't forget to import accounts 
 | 
Beta Was this translation helpful? Give feedback.
-
| Brownie starts with your  To fix this, you'd have to move your other function into the main function, and change your  from brownie import accounts
def deploy_simple_storage():
    account = accounts.load("freecodecamp-account")
    print(account)
def main():
    print("Hello!")
    deploy_simple_storage() | 
Beta Was this translation helpful? Give feedback.
Brownie starts with your
mainfunction, and yourmainfunction currently only doesprint("Hello!")!To fix this, you'd have to move your other function into the main function, and change your
"account"string to "account" the variable: