Skip to content

Commit

Permalink
moved constant to constants file
Browse files Browse the repository at this point in the history
  • Loading branch information
jjwoz committed Dec 9, 2021
1 parent 901535d commit 95ed7e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 3 additions & 0 deletions app/src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,6 @@ export const grantRoundKeyPrefix = 'GrantRound-';
export const grantRoundsCLRDataKeyPrefix = 'GrantRoundsGrantData-';

export const NO_LOGO_OBJECT = { protocol: 0, pointer: '' };

// --- ipfs ---
export const retrievalEndpoint = 'https://scopelift.b-cdn.net/ipfs';
5 changes: 1 addition & 4 deletions app/src/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { BatchFilterQuery, EtherscanGroup } from 'src/types';
import useWalletStore from 'src/store/wallet';
import { Grant, GrantRound, MetaPtr } from '@dgrants/types';
import { formatUnits } from 'src/utils/ethers';
import { ETH_ADDRESS } from 'src/utils/constants';
import { ETH_ADDRESS, retrievalEndpoint } from 'src/utils/constants';
import {
DEFAULT_PROVIDER,
ETHERSCAN_BASE_URL,
Expand All @@ -19,9 +19,6 @@ import {
} from 'src/utils/chains';
import { Ref } from 'vue';

// --- Constants ---
const retrievalEndpoint = 'https://scopelift.b-cdn.net/ipfs';

// --- Formatters ---
// Returns an address with the following format: 0x1234…abcd
export function formatAddress(address: string) {
Expand Down

0 comments on commit 95ed7e0

Please sign in to comment.