From 1fcfbdce5fce3728e756bbe6fbfc397e2c0110b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=BDiga=20Kokelj?= Date: Wed, 14 Aug 2024 14:44:04 +0200 Subject: [PATCH] fix network config request --- contracts/src/bridge/frontend/api/general.ts | 8 +------- contracts/src/bridge/frontend/src/routes/index.ts | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/contracts/src/bridge/frontend/api/general.ts b/contracts/src/bridge/frontend/api/general.ts index 0d64c59b8e..2baffae689 100644 --- a/contracts/src/bridge/frontend/api/general.ts +++ b/contracts/src/bridge/frontend/api/general.ts @@ -16,13 +16,7 @@ export const fetchObscuroConfig = async (): Promise< ResponseDataInterface > => { return await httpRequest>({ - method: "post", + method: "get", url: apiRoutes.getObscuroConfig, - data: { - jsonrpc: "2.0", - method: "obscuro_config", - params: [], - id: 1, - }, }); }; diff --git a/contracts/src/bridge/frontend/src/routes/index.ts b/contracts/src/bridge/frontend/src/routes/index.ts index 7e54ad5e96..d045e83807 100644 --- a/contracts/src/bridge/frontend/src/routes/index.ts +++ b/contracts/src/bridge/frontend/src/routes/index.ts @@ -19,7 +19,7 @@ export const NavLinks: NavLink[] = [ export const apiRoutes = { getHealthStatus: `/info/health/`, - getObscuroConfig: `/network-config`, + getObscuroConfig: `/network-config/`, }; export const requestMethods = {