Skip to content

Commit

Permalink
log
Browse files Browse the repository at this point in the history
  • Loading branch information
KorbinianK committed May 2, 2024
1 parent 02f607f commit 84ef2a2
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ class MoralisNFTRepository implements INFTRepository {
}

async findByAddress({ address, chainId, refresh = false }: FetchNftArgs): Promise<NFT[]> {
// eslint-disable-next-line no-console
console.log('Fetching NFTs from Moralis', address, chainId, refresh);

this.lastFetchedAddress = address;

if (refresh) {
Expand All @@ -55,7 +58,8 @@ class MoralisNFTRepository implements INFTRepository {
address: address,
limit: moralisApiConfig.limit,
});

// eslint-disable-next-line no-console
console.log('response', response);
this.cursor = response.pagination.cursor || '';
this.hasFetchedAll = !this.cursor; // If there is no cursor, we have fetched all NFTs

Expand Down

0 comments on commit 84ef2a2

Please sign in to comment.