@@ -495,8 +495,9 @@ export class NftDetectionController extends BaseController<
495495 address : string ;
496496 next ?: string ;
497497 } ) {
498- // eslint-disable-next-line @typescript-eslint/restrict-template-expressions
499- return `${ NFT_API_BASE_URL } /users/${ address } /tokens?chainIds=${ chainId } &limit=50&includeTopBid=true&continuation=${
498+ return `${
499+ NFT_API_BASE_URL as string
500+ } /users/${ address } /tokens?chainIds=${ chainId } &limit=50&includeTopBid=true&continuation=${
500501 next ?? ''
501502 } `;
502503 }
@@ -589,12 +590,12 @@ export class NftDetectionController extends BaseController<
589590 ) ;
590591 const addNftPromises = apiNfts . map ( async ( nft ) => {
591592 const {
592- tokenId : TokenId ,
593+ tokenId,
593594 contract,
594595 kind,
595- image : ImageUrl ,
596- imageSmall : ImageThumbnailUrl ,
597- metadata : { imageOriginal : ImageOriginalUrl } = { } ,
596+ image : imageUrl ,
597+ imageSmall : imageThumbnailUrl ,
598+ metadata : { imageOriginal : imageOriginalUrl } = { } ,
598599 name,
599600 description,
600601 attributes,
@@ -613,7 +614,7 @@ export class NftDetectionController extends BaseController<
613614 /* istanbul ignore next */
614615 return (
615616 c . address === toChecksumHexAddress ( contract ) &&
616- c . tokenId === TokenId
617+ c . tokenId === tokenId
617618 ) ;
618619 } ) ;
619620 }
@@ -625,9 +626,9 @@ export class NftDetectionController extends BaseController<
625626 { } ,
626627 { name } ,
627628 description && { description } ,
628- ImageUrl && { image : ImageUrl } ,
629- ImageThumbnailUrl && { imageThumbnail : ImageThumbnailUrl } ,
630- ImageOriginalUrl && { imageOriginal : ImageOriginalUrl } ,
629+ imageUrl && { image : imageUrl } ,
630+ imageThumbnailUrl && { imageThumbnail : imageThumbnailUrl } ,
631+ imageOriginalUrl && { imageOriginal : imageOriginalUrl } ,
631632 kind && { standard : kind . toUpperCase ( ) } ,
632633 lastSale && { lastSale } ,
633634 attributes && { attributes } ,
@@ -637,7 +638,7 @@ export class NftDetectionController extends BaseController<
637638 collection && { collection } ,
638639 ) ;
639640
640- await this . #addNft( contract , TokenId , {
641+ await this . #addNft( contract , tokenId , {
641642 nftMetadata,
642643 userAddress,
643644 source : Source . Detected ,
0 commit comments