Skip to content

Commit

Permalink
fix: docs - fix toml key for forking (#189)
Browse files Browse the repository at this point in the history
* fix: docs - fix toml key for forking

Current docs use `is_fork`, should be `fork`

* Replace is_fork with fork in network config docs

* Replaced is_fork with fork in reserved vars
  • Loading branch information
benber86 authored Jan 29, 2025
1 parent 9e4ae99 commit c18c2ac
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions docs/source/all_moccasin_toml_parameters.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ All possible options
[networks.pyevm]
# The basic EVM local network
# cannot set URL, chain_id, is_fork, is_zksync, prompt_live, explorer_uri, explorer_api_key
# cannot set URL, chain_id, fork, is_zksync, prompt_live, explorer_uri, explorer_api_key
default_account_name = "anvil"
[networks.eravm]
# The special ZKSync Era local network
# cannot set URL, chain_id, is_fork, is_zksync, prompt_live, explorer_uri, explorer_api_key
# cannot set URL, chain_id, fork, is_zksync, prompt_live, explorer_uri, explorer_api_key
default_account_name = "anvil"
[networks.contracts]
Expand All @@ -68,7 +68,7 @@ All possible options
[networks.sepolia]
url = "https://ethereum-sepolia-rpc.publicnode.com"
chain_id = 11155111
is_fork = false
fork = false
is_zksync = false
# This is the name of the account that will be unlocked when running on this network
default_account_name = "anvil"
Expand Down
4 changes: 2 additions & 2 deletions docs/source/core_concepts/networks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Networks in ``moccasin`` are identified in your ``moccasin.toml``. The complete
[networks.sepolia]
url = "https://ethereum-sepolia-rpc.publicnode.com"
chain_id = 11155111
is_fork = false
fork = false
is_zksync = false
default_account_name = "anvil"
unsafe_password_file = "~/.moccasin/password"
Expand All @@ -24,7 +24,7 @@ Let's walk through some of the options here.

- ``url``: The URL of the network you are connecting to.
- ``chain_id``: The chain ID of the network you are connecting to.
- ``is_fork``: If you are forking a network, set this to ``true``.
- ``fork``: If you are forking a network, set this to ``true``.
- ``is_zksync``: If you are connecting to a zkSync network, set this to ``true``.
- ``default_account_name``: The default account name to use when deploying contracts. This will be the name of your account you created with your :doc:`wallet <wallet>` command.
- ``unsafe_password_file``: The location of the password file for your account. This is a file that contains the password for your account. BE SURE TO NEVER PUSH THIS PASSWORD TO GITHUB IF YOU USE THIS.
Expand Down
6 changes: 3 additions & 3 deletions docs/source/core_concepts/networks/forked_networks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ In testing, forking is an essential part of the development process. **Any scrip
[networks.sepolia]
url = "https://ethereum-sepolia-rpc.publicnode.com"
chain_id = 11155111
is_fork = true
fork = true
Running a script with this setup will run your script locally, but pretending to be on the ``sepolia`` network, with contracts and everything!

Expand All @@ -35,11 +35,11 @@ You can also take any non-forked network and run a forked test just by adding th
[networks.sepolia]
url = "https://ethereum-sepolia-rpc.publicnode.com"
chain_id = 11155111
is_fork = false
fork = false
Forked network defaults
========================

.. literalinclude:: ../../_autogenerated/fork_defaults.rst


2 changes: 1 addition & 1 deletion moccasin/constants/vars.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
RESTRICTED_VALUES_FOR_LOCAL_NETWORK = [
"url",
"chain_id",
"is_fork",
"fork",
"explorer_uri",
"exploer_api_key",
]
Expand Down

0 comments on commit c18c2ac

Please # to comment.