From 7c73d9ead0ed3fb8ed97bd29b487900807b3fdad Mon Sep 17 00:00:00 2001 From: Fara Woolf Date: Thu, 21 Dec 2023 08:53:13 -0600 Subject: [PATCH] fix: remove hiro api key --- src/app/common/api/fetch-wrapper.ts | 10 ---------- src/shared/constants.ts | 2 -- 2 files changed, 12 deletions(-) diff --git a/src/app/common/api/fetch-wrapper.ts b/src/app/common/api/fetch-wrapper.ts index bedc27697d9..4fa0bda3a5b 100644 --- a/src/app/common/api/fetch-wrapper.ts +++ b/src/app/common/api/fetch-wrapper.ts @@ -1,10 +1,5 @@ -import axios from 'axios'; - -import { HIRO_API_KEY } from '@shared/constants'; - const leatherHeaders: HeadersInit = { 'x-leather-version': VERSION, - 'x-hiro-api-key': HIRO_API_KEY, }; /** @@ -37,8 +32,3 @@ export async function fetchWithTimeout( return response; } - -axios.interceptors.request.use(config => { - if (config.url?.includes('hiro.so')) config.headers['x-hiro-api-key'] = HIRO_API_KEY; - return config; -}); diff --git a/src/shared/constants.ts b/src/shared/constants.ts index 8f8d7ce10cf..696df810ed6 100644 --- a/src/shared/constants.ts +++ b/src/shared/constants.ts @@ -79,8 +79,6 @@ export interface NetworkConfiguration { }; } -export const HIRO_API_KEY = 'leather_i2LDUpJTyVZcLz51EoY57QjYr8fx8vvX'; - export const HIRO_API_BASE_URL_MAINNET = 'https://api.hiro.so'; export const HIRO_API_BASE_URL_TESTNET = 'https://api.testnet.hiro.so'; export const HIRO_INSCRIPTIONS_API_URL = 'https://api.hiro.so/ordinals/v1/inscriptions';