From 0cf23b27b53076f4b0632080d7c1c7a2050e0a42 Mon Sep 17 00:00:00 2001 From: ryanml Date: Tue, 6 Aug 2024 11:32:43 -0700 Subject: [PATCH] chore: update ipfs hostname (#21) Signed-off-by: ryanml --- src/background/services/balances/models.ts | 2 +- src/utils/ipsfResolverWithFallback.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/background/services/balances/models.ts b/src/background/services/balances/models.ts index 17545b0c..c1e0f6f6 100644 --- a/src/background/services/balances/models.ts +++ b/src/background/services/balances/models.ts @@ -167,7 +167,7 @@ export interface Balances { }; } -export const CLOUDFLARE_IPFS_URL = 'https://cloudflare-ipfs.com'; +export const IPFS_URL = 'https://ipfs.io'; export interface CachedBalancesInfo { totalBalance?: TotalBalance; diff --git a/src/utils/ipsfResolverWithFallback.ts b/src/utils/ipsfResolverWithFallback.ts index a471f3d7..1a126e99 100644 --- a/src/utils/ipsfResolverWithFallback.ts +++ b/src/utils/ipsfResolverWithFallback.ts @@ -1,8 +1,8 @@ import { ipfsResolver } from '@avalabs/core-utils-sdk'; -import { CLOUDFLARE_IPFS_URL } from '@src/background/services/balances/models'; +import { IPFS_URL } from '@src/background/services/balances/models'; export function ipfsResolverWithFallback( sourceUrl: string | undefined, - desiredGatewayPrefix: string = CLOUDFLARE_IPFS_URL + desiredGatewayPrefix: string = IPFS_URL ) { if (!sourceUrl) { return '';