Skip to content

Commit

Permalink
chore: update ipfs hostname (#21)
Browse files Browse the repository at this point in the history
Signed-off-by: ryanml <[email protected]>
  • Loading branch information
ryanml authored Aug 6, 2024
1 parent 00c212b commit 0cf23b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/background/services/balances/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/utils/ipsfResolverWithFallback.ts
Original file line number Diff line number Diff line change
@@ -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 '';
Expand Down

0 comments on commit 0cf23b2

Please sign in to comment.