From 3ab98eacc1b1b916a4fb6c305853349e6a6f5b30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Lambert?= <44363395+lambertkevin@users.noreply.github.com> Date: Mon, 11 Apr 2022 20:52:43 +0200 Subject: [PATCH] Fix new architecture nftsResolvers in cli (#1883) --- 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,