Skip to content

Commit

Permalink
fix: remove import
Browse files Browse the repository at this point in the history
  • Loading branch information
sahar-fehri committed Jan 16, 2025
1 parent ef12e4f commit 023dd64
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
14 changes: 7 additions & 7 deletions packages/assets-controllers/src/NftController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import {
ApprovalType,
NFT_API_BASE_URL,
NFT_API_VERSION,
NFT_UPDATE_THRESHOLD,
} from '@metamask/controller-utils';
import { type InternalAccount } from '@metamask/keyring-internal-api';
import type {
Expand Down Expand Up @@ -101,12 +100,11 @@ type SuggestedNftMeta = {
* @property isCurrentlyOwned - Boolean indicating whether the address/chainId combination where it's currently stored currently owns this NFT
* @property transactionId - Transaction Id associated with the NFT
*/
export type Nft =
| {
tokenId: string;
address: string;
isCurrentlyOwned?: boolean;
} & NftMetadata;
export type Nft = {
tokenId: string;
address: string;
isCurrentlyOwned?: boolean;
} & NftMetadata;

type NftUpdate = {
nft: Nft;
Expand Down Expand Up @@ -275,6 +273,8 @@ export const getDefaultNftControllerState = (): NftControllerState => ({
ignoredNfts: [],
});

const NFT_UPDATE_THRESHOLD = 500;

/**
* Controller that stores assets and exposes convenience methods
*/
Expand Down
1 change: 0 additions & 1 deletion packages/controller-utils/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
export const RPC = 'rpc';
export const FALL_BACK_VS_CURRENCY = 'ETH';
export const IPFS_DEFAULT_GATEWAY_URL = 'https://cloudflare-ipfs.com/ipfs/';
export const NFT_UPDATE_THRESHOLD = 500;

// NETWORKS ID
// `toHex` not invoked to avoid cyclic dependency
Expand Down
1 change: 0 additions & 1 deletion packages/controller-utils/src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ describe('@metamask/controller-utils', () => {
"RPC",
"FALL_BACK_VS_CURRENCY",
"IPFS_DEFAULT_GATEWAY_URL",
"NFT_UPDATE_THRESHOLD",
"GANACHE_CHAIN_ID",
"MAX_SAFE_CHAIN_ID",
"ERC721",
Expand Down

0 comments on commit 023dd64

Please sign in to comment.