From 5220475db2a0f0a88b209d02fcb520c1ee049a49 Mon Sep 17 00:00:00 2001 From: Maria Carmina Date: Tue, 17 Oct 2023 16:37:22 +0300 Subject: [PATCH] Return unknown for custom providers. --- ocean_provider/utils/basics.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ocean_provider/utils/basics.py b/ocean_provider/utils/basics.py index 4cf699ca..aee11f0a 100644 --- a/ocean_provider/utils/basics.py +++ b/ocean_provider/utils/basics.py @@ -181,6 +181,8 @@ def get_network_name(chain_id: int) -> str: if v["chainId"] == chain_id: return k + return "Unknown" + def send_ether(web3, from_wallet: Account, to_address: str, amount: int): """Sends ether from wallet to the address."""