diff --git a/deployment/utils.py b/deployment/utils.py index 8bba053b..d3541154 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