Skip to content
This repository has been archived by the owner on Jul 15, 2022. It is now read-only.

Commit

Permalink
Fix new architecture nftsResolvers in cli (#1883)
Browse files Browse the repository at this point in the history
  • Loading branch information
lambertkevin committed Apr 11, 2022
1 parent f266150 commit eb1022c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cli/src/commands/sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit eb1022c

Please sign in to comment.