Skip to content

Commit

Permalink
fix: remove hiro api key
Browse files Browse the repository at this point in the history
  • Loading branch information
fbwoolf committed Dec 21, 2023
1 parent 5c89eea commit 7c73d9e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
10 changes: 0 additions & 10 deletions src/app/common/api/fetch-wrapper.ts
Original file line number Diff line number Diff line change
@@ -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,
};

/**
Expand Down Expand Up @@ -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;
});
2 changes: 0 additions & 2 deletions src/shared/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 7c73d9e

Please sign in to comment.