diff --git a/brownie/network/web3.py b/brownie/network/web3.py index 73ac3d4f8..689b844c3 100644 --- a/brownie/network/web3.py +++ b/brownie/network/web3.py @@ -110,11 +110,15 @@ def disconnect(self) -> None: self._chain_id = None self._remove_middlewares() - def isConnected(self) -> bool: + def is_connected(self) -> bool: if not self.provider: return False return super().is_connected() + def isConnected(self) -> bool: + # retained to avoid breaking an interface explicitly defined in brownie + return self.is_connected() + @property def supports_traces(self) -> bool: if not self.provider: @@ -135,7 +139,7 @@ def supports_traces(self) -> bool: @property def _mainnet(self) -> _Web3: # a web3 instance connected to the mainnet - if self.isConnected() and CONFIG.active_network["id"] == "mainnet": + if self.is_connected() and CONFIG.active_network["id"] == "mainnet": return self try: mainnet = CONFIG.networks["mainnet"]