From eb2b9c42adf0ae05ebadc79d3c9ba48f0568b036 Mon Sep 17 00:00:00 2001 From: Jennifer Echenim Date: Wed, 31 Jul 2024 14:56:30 +0400 Subject: [PATCH] Update API endpoint and switchNetwork function signature --- contracts/src/bridge/frontend/src/routes/index.ts | 2 +- contracts/src/bridge/frontend/src/types/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/src/bridge/frontend/src/routes/index.ts b/contracts/src/bridge/frontend/src/routes/index.ts index cfe88c27a5..1183d1fdf4 100644 --- a/contracts/src/bridge/frontend/src/routes/index.ts +++ b/contracts/src/bridge/frontend/src/routes/index.ts @@ -20,7 +20,7 @@ export const NavLinks: NavLink[] = [ export const apiRoutes = { getHealthStatus: `/info/health/`, - getObscuroConfig: `http://erpc.${environment}.obscu.ro:80/`, + getObscuroConfig: `http://erpc.${environment}-testnet.obscu.ro:80/`, }; export const requestMethods = { diff --git a/contracts/src/bridge/frontend/src/types/index.ts b/contracts/src/bridge/frontend/src/types/index.ts index 5b2c938104..f9ba4f8927 100644 --- a/contracts/src/bridge/frontend/src/types/index.ts +++ b/contracts/src/bridge/frontend/src/types/index.ts @@ -133,7 +133,7 @@ export interface WalletConnectionContextType { toChains: Chain[]; connectWallet: () => void; disconnectWallet: () => void; - switchNetwork: (network: string) => void; + switchNetwork: () => void; } export interface Props {