Skip to content

Commit 6d0a5ed

Browse files
committed
chore: type fixes address_book
Signed-off-by: exploreriii <[email protected]>
1 parent f6bde75 commit 6d0a5ed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/hiero_sdk_python/address_book/node_address.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from typing import List, TypedDict
22

33
from 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
55
from hiero_sdk_python.hapi.services.basic_types_pb2 import NodeAddress as NodeAddressProto
66

77
class 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

2626
class 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')

0 commit comments

Comments
 (0)