Skip to content

Commit 8df4e5f

Browse files
committed
test
1 parent 51ce194 commit 8df4e5f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/hiero_sdk_python/client/client.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,11 @@ def _init_mirror_stub(self) -> None:
5353
We now use self.network.get_mirror_address() for a configurable mirror address.
5454
"""
5555
mirror_address = self.network.get_mirror_address()
56-
self.mirror_channel = grpc.secure_channel(mirror_address, grpc.ssl_channel_credentials())
56+
if self.network in ('mainnet', 'testnet', 'previewnet'):
57+
self.mirror_channel = grpc.secure_channel(mirror_address, grpc.ssl_channel_credentials())
58+
else:
59+
print(mirror_address)
60+
self.mirror_channel = grpc.insecure_channel(mirror_address)
5761
self.mirror_stub = mirror_consensus_grpc.ConsensusServiceStub(self.mirror_channel)
5862

5963
def set_operator(self, account_id: AccountId, private_key: PrivateKey) -> None:

0 commit comments

Comments
 (0)