From 36b3eb9f6ec69e4d1bbf1d8039d94d43678841f9 Mon Sep 17 00:00:00 2001 From: Kristof Csillag Date: Fri, 16 Feb 2024 02:36:02 +0100 Subject: [PATCH] Don't mock PontusX data with Sapphire We have real data now. --- .changelog/1266.trivial.md | 1 + src/oasis-nexus/api.ts | 9 --------- 2 files changed, 1 insertion(+), 9 deletions(-) create mode 100644 .changelog/1266.trivial.md diff --git a/.changelog/1266.trivial.md b/.changelog/1266.trivial.md new file mode 100644 index 000000000..fa9424d1e --- /dev/null +++ b/.changelog/1266.trivial.md @@ -0,0 +1 @@ +Don't mock PontusX data with Sapphire diff --git a/src/oasis-nexus/api.ts b/src/oasis-nexus/api.ts index 68595930f..bd1e14cac 100644 --- a/src/oasis-nexus/api.ts +++ b/src/oasis-nexus/api.ts @@ -124,15 +124,6 @@ function arrayify(arrayOrItem: null | undefined | T | T[]): T[] { return arrayOrItem } -// TODO: remove when pontusx API is ready -axios.interceptors.request.use(config => { - // Mock pontusx - if (config.url?.includes('/v1/pontusx')) { - config.url = config.url.replace('/v1/pontusx', '/v1/sapphire') - } - return config -}) - export const useGetConsensusTransactions: typeof generated.useGetConsensusTransactions = ( network, params?,