From 8bd9d69423c9f54ec13ca1e7f551e011882095ff Mon Sep 17 00:00:00 2001 From: Denis Fadeev Date: Thu, 21 Dec 2023 11:41:41 +0400 Subject: [PATCH] fix: endpoints --- helpers/balances.ts | 2 +- helpers/pools.ts | 2 +- helpers/sendZRC20.ts | 4 +--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/helpers/balances.ts b/helpers/balances.ts index 6b7c40c6..9cd8a8fa 100644 --- a/helpers/balances.ts +++ b/helpers/balances.ts @@ -8,7 +8,7 @@ import fetch from "isomorphic-fetch"; export const getForeignCoins = async () => { const api = getEndpoints("cosmos-http", "zeta_testnet")[0]?.url; - const endpoint = `${api}/zeta-chain/zetacore/fungible/foreign_coins`; + const endpoint = `${api}/zeta-chain/fungible/foreign_coins`; const response = await fetch(endpoint); const data = await response.json(); return data.foreignCoins; diff --git a/helpers/pools.ts b/helpers/pools.ts index dea160cb..036c62c7 100644 --- a/helpers/pools.ts +++ b/helpers/pools.ts @@ -7,7 +7,7 @@ import fetch from "isomorphic-fetch"; export const getPools = async () => { const api = getEndpoints("cosmos-http", "zeta_testnet")[0]?.url; - const endpoint = `${api}/zeta-chain/zetacore/fungible/foreign_coins`; + const endpoint = `${api}/zeta-chain/fungible/foreign_coins`; const response = await fetch(endpoint); const data = await response.json(); diff --git a/helpers/sendZRC20.ts b/helpers/sendZRC20.ts index 52417a5c..5f4d7972 100644 --- a/helpers/sendZRC20.ts +++ b/helpers/sendZRC20.ts @@ -24,9 +24,7 @@ export const sendZRC20 = async ( } const API = getEndpoints("cosmos-http", "zeta_testnet")?.[0]?.url; - const response = await fetch( - `${API}/zeta-chain/zetacore/fungible/foreign_coins` - ); + const response = await fetch(`${API}/zeta-chain/fungible/foreign_coins`); const data = await response.json(); const foreignCoins = data.foreignCoins; const networkChainID = networks[network as keyof typeof networks]?.chain_id;