File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/hiero_sdk_python/client Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments