Skip to content

##lesson5: doesnt display the account created in code #197

Answered by PatrickAlphaC
amitnil-dev asked this question in Q&A
Discussion options

You must be logged in to vote

Brownie starts with your main function, and your main function currently only does print("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:

from brownie import accounts

def deploy_simple_storage():
    account = accounts.load("freecodecamp-account")
    print(account)
def main():
    print("Hello!")
    deploy_simple_storage()

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@amitnil-dev
Comment options

Comment options

You must be logged in to vote
1 reply
@amitnil-dev
Comment options

Answer selected by PatrickAlphaC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants