File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/hiero_sdk_python/address_book Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11from typing import List , TypedDict
22
33from hiero_sdk_python .account .account_id import AccountId
4- from hiero_sdk_python .address_book .endpoint import Endpoint
4+ from hiero_sdk_python .address_book .endpoint import Endpoint , EndpointDict
55from hiero_sdk_python .hapi .services .basic_types_pb2 import NodeAddress as NodeAddressProto
66
77class NodeDict (TypedDict ):
@@ -20,7 +20,7 @@ class NodeDict(TypedDict):
2020 node_account_id : str
2121 node_id : int
2222 node_cert_hash : str
23- service_endpoints : List [Endpoint ]
23+ service_endpoints : List [EndpointDict ]
2424 description : str
2525
2626class NodeAddress :
@@ -136,7 +136,7 @@ def _from_dict(cls, node: NodeDict) -> 'NodeAddress':
136136 Create a NodeAddress from a dictionary.
137137 """
138138
139- service_endpoints : List [Endpoint ] = node .get ('service_endpoints' , [])
139+ service_endpoints : List [EndpointDict ] = node .get ('service_endpoints' , [])
140140 public_key : str = node .get ('public_key' )
141141 account_id : AccountId = AccountId .from_string (node .get ('node_account_id' ))
142142 node_id : int = node .get ('node_id' )
You can’t perform that action at this time.
0 commit comments