From 267e6fe83adc8ee0863002f3a74ff3ab97ac5fb6 Mon Sep 17 00:00:00 2001 From: antazoey Date: Mon, 6 May 2024 17:39:37 -0600 Subject: [PATCH] fix: remove double caching for `ProviderAPI.config` (#2060) --- src/ape/api/networks.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ape/api/networks.py b/src/ape/api/networks.py index 2b19f062b8..45834c38d1 100644 --- a/src/ape/api/networks.py +++ b/src/ape/api/networks.py @@ -226,7 +226,7 @@ def decode_block(self, data: Dict) -> "BlockAPI": :class:`~ape.api.providers.BlockAPI` """ - @cached_property + @property def config(self) -> PluginConfig: """ The configuration of the ecosystem. See :class:`ape.managers.config.ConfigManager` @@ -821,7 +821,6 @@ def config(self) -> PluginConfig: The configuration of the network. See :class:`~ape.managers.config.ConfigManager` for more information on plugin configurations. """ - return self.config_manager.get_config(self.ecosystem.name) @property