Skip to content

Commit 95ed7e0

Browse files
committed
moved constant to constants file
1 parent 901535d commit 95ed7e0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/src/utils/constants.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,6 @@ export const grantRoundKeyPrefix = 'GrantRound-';
5555
export const grantRoundsCLRDataKeyPrefix = 'GrantRoundsGrantData-';
5656

5757
export const NO_LOGO_OBJECT = { protocol: 0, pointer: '' };
58+
59+
// --- ipfs ---
60+
export const retrievalEndpoint = 'https://scopelift.b-cdn.net/ipfs';

app/src/utils/utils.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { BatchFilterQuery, EtherscanGroup } from 'src/types';
99
import useWalletStore from 'src/store/wallet';
1010
import { Grant, GrantRound, MetaPtr } from '@dgrants/types';
1111
import { formatUnits } from 'src/utils/ethers';
12-
import { ETH_ADDRESS } from 'src/utils/constants';
12+
import { ETH_ADDRESS, retrievalEndpoint } from 'src/utils/constants';
1313
import {
1414
DEFAULT_PROVIDER,
1515
ETHERSCAN_BASE_URL,
@@ -19,9 +19,6 @@ import {
1919
} from 'src/utils/chains';
2020
import { Ref } from 'vue';
2121

22-
// --- Constants ---
23-
const retrievalEndpoint = 'https://scopelift.b-cdn.net/ipfs';
24-
2522
// --- Formatters ---
2623
// Returns an address with the following format: 0x1234…abcd
2724
export function formatAddress(address: string) {

0 commit comments

Comments
 (0)