From 3772347802a6a0c3306cbecc742a8e2596a7c1fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=BA=C3=B1ez?= Date: Wed, 21 Aug 2024 16:25:08 +0200 Subject: [PATCH] Don't check for ape-infura when not using infura --- deployment/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deployment/utils.py b/deployment/utils.py index 591ef777..1cce314d 100644 --- a/deployment/utils.py +++ b/deployment/utils.py @@ -99,6 +99,8 @@ def check_infura_plugin() -> None: """Checks that the ape-infura plugin is installed.""" if is_local_network(): return # unnecessary for local deployment + if networks.provider.name != 'infura': + return # unnecessary when using a provider different than infura try: import ape_infura # noqa: F401 from ape_infura.provider import _ENVIRONMENT_VARIABLE_NAMES # noqa: F401