From fff51126e882ea5bb23261ac0175ddca52e4d8f2 Mon Sep 17 00:00:00 2001 From: GabriePrediger Date: Mon, 27 May 2024 18:11:19 -0300 Subject: [PATCH] fix: luxy api call url --- packages/sysweb3-utils/src/nfts.ts | 4 ++-- packages/sysweb3-utils/yarn.lock | 7 ------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/packages/sysweb3-utils/src/nfts.ts b/packages/sysweb3-utils/src/nfts.ts index 115645a..f38e712 100644 --- a/packages/sysweb3-utils/src/nfts.ts +++ b/packages/sysweb3-utils/src/nfts.ts @@ -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); @@ -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); diff --git a/packages/sysweb3-utils/yarn.lock b/packages/sysweb3-utils/yarn.lock index c0ff834..c86bffb 100644 --- a/packages/sysweb3-utils/yarn.lock +++ b/packages/sysweb3-utils/yarn.lock @@ -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"