Skip to content

Commit

Permalink
fix: luxy api call url
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielPrediger committed May 27, 2024
1 parent b2c2b12 commit fff5112
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
4 changes: 2 additions & 2 deletions packages/sysweb3-utils/src/nfts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export const fetchLuxyNFTs = async (
let page = 0;
let pagingFinish = false;
let collectibles: any[] = [];
let url = `https://backend.luxy.io/nft/by-owner/${formattedWalletAddress}?network=%5B${network}%5D&page=${page}&limit=${limit}`;
let url = `https://backend.luxy.io/nft/by-owner/${formattedWalletAddress}?network=%5B"${network}"%5D&page=${page}&limit=${limit}`;

do {
const response = await fetch(url);
Expand All @@ -93,7 +93,7 @@ export const fetchLuxyNFTs = async (
pagingFinish = true;
}

url = `https://backend.luxy.io/nft/by-owner/${formattedWalletAddress}?network=["${network}"]&page=${page}&limit=${limit}`;
url = `https://backend.luxy.io/nft/by-owner/${formattedWalletAddress}?network=%5B"${network}"%5D&page=${page}&limit=${limit}`;
page += 1;
} while (!pagingFinish);

Expand Down
7 changes: 0 additions & 7 deletions packages/sysweb3-utils/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2409,13 +2409,6 @@ eth-object@^1.0.3, "eth-object@https://github.com/syscoin/eth-object.git":
dependencies:
eth-util-lite "^1.0.1"

"eth-object@git+https://github.com/syscoin/eth-object.git":
version "1.0.3"
uid b5ff300f57c136138b31d6e570c816a147e0f1c9
resolved "git+https://github.com/syscoin/eth-object.git#b5ff300f57c136138b31d6e570c816a147e0f1c9"
dependencies:
eth-util-lite "^1.0.1"

eth-proof@^2.1.6:
version "2.1.6"
resolved "https://registry.yarnpkg.com/eth-proof/-/eth-proof-2.1.6.tgz#6c8a468f82334d9c79347324e6eb237f1ecc965f"
Expand Down

0 comments on commit fff5112

Please sign in to comment.