Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
sahar-fehri committed Jun 11, 2024
1 parent 85d2f52 commit fe30b8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/assets-controllers/src/NftController.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4350,4 +4350,4 @@ describe('NftController', () => {

expect(updateNftMetadataSpy).not.toHaveBeenCalled();
});
});
});
2 changes: 2 additions & 0 deletions packages/assets-controllers/src/NftDetectionController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,7 @@ export class NftDetectionController extends BaseController<
address: string;
next?: string;
}) {
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
return `${NFT_API_BASE_URL}/users/${address}/tokens?chainIds=${chainId}&limit=50&includeTopBid=true&continuation=${
next ?? ''
}`;
Expand Down Expand Up @@ -556,6 +557,7 @@ export class NftDetectionController extends BaseController<
return;
}

// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
const updateKey: `${Hex}:${string}` = `${chainId}:${userAddress}`;
if (updateKey in this.#inProcessNftFetchingUpdates) {
// This prevents redundant updates
Expand Down

0 comments on commit fe30b8c

Please sign in to comment.