From f9df8f0bf27a639aed997a38bf85b8148292d99f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Lambert?= <44363395+lambertkevin@users.noreply.github.com> Date: Fri, 8 Apr 2022 13:15:24 +0200 Subject: [PATCH] Fix new architecture nftsResolvers in cli (#1872) --- cli/src/commands/sync.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/src/commands/sync.ts b/cli/src/commands/sync.ts index 308a86abb3..eb769313a4 100644 --- a/cli/src/commands/sync.ts +++ b/cli/src/commands/sync.ts @@ -29,14 +29,14 @@ export default { const { currencyId } = decodeAccountId(account.id); const currency = getCryptoCurrencyById(currencyId); const currencyBridge = getCurrencyBridge(currency); - const { nftMetadataResolver } = currencyBridge; + const { nftResolvers } = currencyBridge; - return account.nfts?.length && nftMetadataResolver + return account.nfts?.length && nftResolvers?.nftMetadata ? { ...account, nfts: await Promise.all( account.nfts.map(async (nft) => { - const { result: metadata } = await nftMetadataResolver({ + const { result: metadata } = await nftResolvers?.nftMetadata({ contract: nft.contract, tokenId: nft.tokenId, currencyId: nft.currencyId,