56 Comments

For those missing avax-main from brownie, I used the command below to add it:

❯ brownie networks add Avalanche avax-main host=https://api.avax.network/ext/bc/C/rpc explorer=https://api.snowtrace.io/api chainid=43114 name=Mainnet

Expand full comment
Jan 31, 2022Liked by BowTiedDevil

Great Stuff Devil - made it through this one ok. Havent coded in 10+ yrs...but I still have the touch....had to go and download older versions of python and brownie to make it work, but I figured it out....lets go!!!

Expand full comment
Jul 8, 2022Liked by BowTiedDevil

Awesome walkthrough, thanks

Expand full comment
Feb 17, 2022Liked by BowTiedDevil

just fyi the eth address won't work if you copypaste it from substack because it isn't all on one line (i think, idk i'm a normie). pasting into notepad and deleting the line solved it for me

Expand full comment
Jan 4, 2022Liked by BowTiedDevil

catching up... really good stuff, thanks Devil

Expand full comment
Dec 24, 2021Liked by BowTiedDevil

Is there a way to change the account password in brownie? can't seem to find how to do this in the eth-brownie documentation

Expand full comment

Went thru this exercise without a hitch. Thanks Devil!

Expand full comment

Was able to replicate everything here. However, kept getting getting this message, but it didn't seem to affect anything. INFO: Could not find files for the given pattern(s).

Expand full comment

"And as a bonus, we’ll learn why the WAVAX contract’s balance was so large and why it didn’t have any decimal places."

not sure about the decimal if was explained why not there are no decimal places

Expand full comment

so instead of "(.venc) name@pop-os:~/", I have "(.venv) (base) name@pop-os:~/" as the start of my commandline, just checking if this is a bad thing...

Expand full comment

note to self: activate venv on Windows using the Command Prompt: path\to\venv\Scripts\activate.bat

Expand full comment

Hi Devil! I'm getting the following error while chacking the brownie version, can get a good answer in google, SO:

File "/usr/local/lib/python3.9/sqlite3/dbapi2.py", line 27, in <module>

from _sqlite3 import *

ModuleNotFoundError: No module named '_sqlite3'

I've run pip3 install pysqlite3 just in case but it doesn't change anything. Brownie version is 1.17.2, running on Linux

Expand full comment

Trying to fix my other problem I have a few questions to make sure I am not over looking something...I know when we create a new user with a new password it gives us the code. When it says to enter it...all it allows me to do is to hit enter (typing isn't an option). I think it is fine in the training however it makes me wonder if something is going on since it is important. When I hit enter I get

>>> user = accounts.load('test_account')

Enter password for "test_account":

File "<console>", line 1, in <module>

File "brownie/network/account.py", line 221, in load

priv_key = web3.eth.account.decrypt(

File "eth_account/account.py", line 155, in decrypt

return HexBytes(decode_keyfile_json(keyfile, password_bytes))

File "eth_keyfile/keyfile.py", line 49, in decode_keyfile_json

return _decode_keyfile_json_v3(keyfile_json, password)

File "eth_keyfile/keyfile.py", line 170, in _decode_keyfile_json_v3

raise ValueError("MAC mismatch")

ValueError: MAC mismatch

>>>

Expand full comment

anybody encounter errors on "cytools not installed"

Expand full comment

Hey man, when I get to the

>>> user = accounts.load('test_account')

Enter password for "test_account":

>>>

Phase I originally had just hit enter when asked for a password because it didn't allow me to type for some reason. And once again when I get to this part it doesn't allow me to type only hit enter to get "Value Error: MAC mismatch". Any idea what's going on here?

Expand full comment

Hi. Question: Better to dedicate a laptop or rent a small and cheap server (can be up and running 24/24)?

Expand full comment