From 6436d46429f0c1621f981afa3143896b3616c425 Mon Sep 17 00:00:00 2001 From: jiyoung Date: Tue, 7 May 2024 12:34:54 +0900 Subject: [PATCH] fix: fix event handler url --- src/constants.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/constants.ts b/src/constants.ts index bc9f189..91bc1d8 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -1,11 +1,11 @@ import { appBillingConfig } from "./types/type" -export const getBlockChainAPIEndpoint = (chainId: number) =>{ +export const getBlockChainAPIEndpoint = (chainId: number) => { return chainId === 1 ? "https://mainnet-api.ainetwork.ai" : "https://testnet-api.ainetwork.ai" } -export const getBlockChainEventEndpoint = (chainId: number) =>{ - return chainId === 1 ? "https://mainnet-event.ainetwork.ai" : "https://testnet-event.ainetwork.ai" +export const getBlockChainEventEndpoint = (chainId: number) => { + return chainId === 1 ? "wss://mainnet-event.ainetwork.ai" : "wss://testnet-event.ainetwork.ai" } export const Path = {