From 479bf0bd2e03e6a7cb83b04ade8821094c8716cf Mon Sep 17 00:00:00 2001 From: Patrick Collins <54278053+PatrickAlphaC@users.noreply.github.com> Date: Fri, 25 Oct 2024 19:08:37 -0400 Subject: [PATCH] fix: explorer not initializing (#133) --- moccasin/commands/explorer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moccasin/commands/explorer.py b/moccasin/commands/explorer.py index ab52f81..f3dd518 100644 --- a/moccasin/commands/explorer.py +++ b/moccasin/commands/explorer.py @@ -6,7 +6,7 @@ import boa -from moccasin.config import Network, get_config +from moccasin.config import Network, get_or_initialize_config from moccasin.constants.vars import ( DEFAULT_API_KEY_ENV_VAR, DEFAULT_NETWORKS_BY_CHAIN_ID, @@ -55,7 +55,7 @@ def boa_get_abi_from_explorer( network: Network | None = None # 1. If not ignore_config, grab stuff from the config if not ignore_config: - config = get_config() + config = get_or_initialize_config() if network_name_or_id: network = config.networks.get_network(network_name_or_id) network = cast(Network, network)