From 8e2c8c9753ae09a822c270455ba2d6030d48cdfd Mon Sep 17 00:00:00 2001 From: Patrice Tisserand Date: Mon, 25 Nov 2024 23:58:53 +0100 Subject: [PATCH] web: use GET instead of POST when querying API marketplace to retrieve L2 NFTs metadata --- apps/web/src/server/api/helpers/l2nfts.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/web/src/server/api/helpers/l2nfts.ts b/apps/web/src/server/api/helpers/l2nfts.ts index 2b551173..75714af7 100644 --- a/apps/web/src/server/api/helpers/l2nfts.ts +++ b/apps/web/src/server/api/helpers/l2nfts.ts @@ -107,9 +107,8 @@ export async function getL2NftsMetadataBatch( for (const token of tokens) { const url = `${nftApiUrl}/tokens/${token.contract_address}/0x534e5f4d41494e/${token.token_id}`; const nftsResponse = await fetch(url, { - body, headers: requestsHeader, - method: "POST", + method: "GET", }); const response = (await nftsResponse.json()) as TokenApiResponse;