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 (#1872)
Browse files Browse the repository at this point in the history
  • Loading branch information
lambertkevin committed Apr 8, 2022
1 parent c7e4186 commit 1449ed2
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 1449ed2

Please sign in to comment.