From fce6764ab8adf9c7865ec742f56964606fcfcfce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20=27birdy=27=20Danjou?= Date: Wed, 29 Nov 2023 18:01:07 +0100 Subject: [PATCH] fix() use secure wss --- src/utils/rpc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/rpc.ts b/src/utils/rpc.ts index 65ef6db..39beb50 100644 --- a/src/utils/rpc.ts +++ b/src/utils/rpc.ts @@ -3,7 +3,7 @@ import { Contract, JsonRpcProvider, WebSocketProvider } from 'ethers'; // const JSONRPC_URL = 'http://localhost:8545/'; // const WEBSOCKET_URL = 'ws://localhost:8546'; const JSONRPC_URL = 'https://devnet.zama.ai/'; -const WEBSOCKET_URL = 'ws://devnet.ws.zama.ai:8546/'; +const WEBSOCKET_URL = 'wss://devnet.ws.zama.ai/'; const jsonProvider = new JsonRpcProvider(JSONRPC_URL); const wsProvider = new WebSocketProvider(WEBSOCKET_URL);