diff --git a/apps/web/src/server/api/routers/bridgeRequest.ts b/apps/web/src/server/api/routers/bridgeRequest.ts index 7137caec..3ec43022 100644 --- a/apps/web/src/server/api/routers/bridgeRequest.ts +++ b/apps/web/src/server/api/routers/bridgeRequest.ts @@ -128,11 +128,17 @@ export const bridgeRequestRouter = createTRPCRouter({ }; }, {}); } else { + const bridgeRequestsTokens = bridgeRequests.map((bridgeRequest) => ({ + contract_address: bridgeRequest.req.collection_src, + token_id: bridgeRequest.token_ids[0], + })); const requestMetadatas = await getL2NftsMetadataBatch( - bridgeRequests.map((bridgeRequest) => ({ - contract_address: bridgeRequest.req.collection_src, - token_id: bridgeRequest.token_ids[0], - })) + Object.values( + bridgeRequestsTokens.reduce((acc, token) => { + acc[token.token_id] = token; + return acc; + }, {} as Record) + ) ); requestMetadataByReqHash = requestMetadatas.result.reduce( (acc, current) => {