Lesson5: read_value.py vs Brownie console #54
-
I'm getting confused with the switching between local accounts and Rinkeby accounts. Do we use Brownie console to look at locally deployed contracts, and read_value scripts to look at testnet-deployed contracts? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Great questions.
When we work with a local blockchain, the local blockchain is a ganache chain. When brownie spins up a local blockchain, it gives us some fake accounts to work with. We can use also use
Whenever we use the Mental maps are exactly the right way to think about these, thank you for asking these questions. |
Beta Was this translation helpful? Give feedback.
Great questions.
When we work with a local blockchain, the local blockchain is a ganache chain. When brownie spins up a local blockchain, it gives us some fake accounts to work with. We can use also use
brownie console
to look at contracts on any blockchain. If we look at a testnet withbrownie console --network rinkeby
we are looking at rinkeby. If we just dobrownie console
this will be our "default" chain (which defaults to a local ganache chain)Whenever we use the
development
network (aka, the default network) we are working with a ganache chain that brownie is secre…