From 27fa5b9c60b614c88b53ce90932184eb7f6ef4ee Mon Sep 17 00:00:00 2001 From: Patrick Collins <54278053+PatrickAlphaC@users.noreply.github.com> Date: Wed, 27 Nov 2024 13:45:23 -0500 Subject: [PATCH] fix: forking cli (#167) --- moccasin/_sys_path_and_config_setup.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/moccasin/_sys_path_and_config_setup.py b/moccasin/_sys_path_and_config_setup.py index 3b5892b..8900abc 100644 --- a/moccasin/_sys_path_and_config_setup.py +++ b/moccasin/_sys_path_and_config_setup.py @@ -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, @@ -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))