Skip to content

Commit

Permalink
docs: correct network mode usage (vyperlang#270)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatOneCalculator authored Aug 4, 2024
1 parent ba33e8c commit cd4e273
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,10 @@ Cast current deployed addresses to vyper contract

```python
>>> import boa
>>> boa.env.set_network_env("<rpc server address>")
>>> boa.set_network_env("<rpc server address>")
>>> from eth_account import Account
>>> # in a real codebase, always load private keys safely from an encrypted store!
>>> boa.env.add_account(Account(<a private key>))
>>> boa.env.add_account(Account.from_key("<a private key>"))
>>> c = boa.load("examples/ERC20.vy", "My Token", "TKN", 10**18, 10)
>>> c.name()
'My Token'
Expand Down

0 comments on commit cd4e273

Please sign in to comment.