Skip to content

Commit

Permalink
web: use GET instead of POST when querying API marketplace to retriev…
Browse files Browse the repository at this point in the history
…e L2 NFTs metadata (#256)
  • Loading branch information
ptisserand authored Nov 25, 2024
1 parent 6e5edb2 commit dc96bf8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/web/src/server/api/helpers/l2nfts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit dc96bf8

Please sign in to comment.