From 6433e24a9ab4e4015fdd6a92a9eb60fde89ab4a9 Mon Sep 17 00:00:00 2001 From: Mohamed Arshath Date: Thu, 5 Dec 2024 02:31:01 +0000 Subject: [PATCH] remove grpc:// if server is grpc --- naptha_sdk/client/node.py | 1 + 1 file changed, 1 insertion(+) diff --git a/naptha_sdk/client/node.py b/naptha_sdk/client/node.py index 8ee2807..cf4ba8c 100644 --- a/naptha_sdk/client/node.py +++ b/naptha_sdk/client/node.py @@ -35,6 +35,7 @@ def __init__(self, node_url: Optional[str] = None, indirect_node_id: Optional[st self.server_type = 'http' elif self.node_url.startswith('grpc://'): self.server_type = 'grpc' + self.node_url = self.node_url.replace('grpc://', '') else: raise ValueError("Invalid node URL")