PatrickAlphaC / web3_py_simple_storage

47 stars 78 forks source link

Non-hexadecimal digit found #27

Closed salamisami closed 2 years ago

salamisami commented 2 years ago

So I've been following the tutorial up to lesson 5 when we fiddle around with brownie. This is my deploy.py: from brownie import accounts, config

def deploy_simple_storage(): # account = accounts[0] # print(account) # account = accounts.load("freecodecampCourse") account = accounts.add(config["wallets"]["from_key"]) print(account)

def main(): deploy_simple_storage() this is my brownie-config.yaml dotenv: .env wallets: from_key: ${PRIVATE_KEY}$

and this is my .env

export PRIVATE_KEY=0x...

I really can't tell what the issue is. I've tried removing the 0x thinking that maybe Python doesnt need the 0x to figure out its a hexadecimal number, double checked spelling and ya... any idea on what it could be?

salamisami commented 2 years ago

Nevermind, I had one $ too many in my brownie config.