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

Bugfix - Add missing update for NFT architecture in CLI #1883

Merged
merged 1 commit into from
Apr 11, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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