Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: forking cli #167

Merged
merged 1 commit into from
Nov 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions moccasin/_sys_path_and_config_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ def _get_set_active_network_from_cli_and_config(
if network is None:
network = config.default_network

if fork is not None and isinstance(fork, str):
if fork.lower().strip() == "false":
fork = False

config.set_active_network(
network,
is_fork=fork,
Expand Down Expand Up @@ -192,6 +196,7 @@ def _setup_network_and_account_from_config_and_cli(
else:
boa.env.add_account(mox_account, force_eoa=True)

# Once the era_test_node gets pranking support, we'll have to update this.
if not mox_account and active_network.name is ERAVM:
boa.env.add_account(MoccasinAccount(private_key=ERA_DEFAULT_PRIVATE_KEY))

Expand Down