We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4782b29 commit 1ced0fcCopy full SHA for 1ced0fc
pyinjective/client.py
@@ -59,18 +59,8 @@ def __init__(
59
self,
60
network: Network,
61
insecure: bool = False,
62
- credentials: grpc.ChannelCredentials = None,
+ credentials = grpc.ssl_channel_credentials()
63
):
64
- # load root CA cert
65
- if not insecure:
66
- if network.env == 'testnet':
67
- if credentials is None:
68
- with open(os.path.join(os.path.dirname(__file__), 'cert/testnet.crt'), 'rb') as f:
69
- credentials = grpc.ssl_channel_credentials(f.read())
70
- if network.env == 'mainnet':
71
72
- with open(os.path.join(os.path.dirname(__file__), 'cert/mainnet.crt'), 'rb') as f:
73
74
75
# chain stubs
76
self.chain_channel = (
0 commit comments