Skip to content

Commit

Permalink
merge declaration and initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
danielailie committed Oct 1, 2024
1 parent 3fb9b4f commit db6308c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/modules/scam/nft-scam.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,7 @@ export class NftScamService {

const apiNfts = await this.mxApiService.getNftsByIdentifiers(nftsMissingFromDb?.map((x) => x.identifier));
if (!apiNfts) return;
let mappedNfts: Asset[] = [];
mappedNfts = apiNfts?.map((x) => new Asset({ ...Asset.fromNft(x), scamInfo }));
let mappedNfts: Asset[] = apiNfts?.map((x) => new Asset({ ...Asset.fromNft(x), scamInfo }));

await this.updateBulkScamInfo(scamEngineVersion, mappedNfts);
}
Expand Down

0 comments on commit db6308c

Please sign in to comment.