From 685bbbda6745f9a3b0740e4b04990a86455e4c97 Mon Sep 17 00:00:00 2001 From: lambertkevin Date: Thu, 7 Apr 2022 14:16:06 +0200 Subject: [PATCH] Change eth NFT prepareTransaction to use collection call instead of nft metadata call --- src/families/ethereum/modules/erc721.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/families/ethereum/modules/erc721.ts b/src/families/ethereum/modules/erc721.ts index ac5e39dc88..1083653a5a 100644 --- a/src/families/ethereum/modules/erc721.ts +++ b/src/families/ethereum/modules/erc721.ts @@ -23,11 +23,10 @@ export async function prepareTransaction( const { collection, collectionName, tokenIds } = transaction; if (collection && tokenIds && typeof collectionName === "undefined") { const api = apiForCurrency(account.currency); - const [{ status, result }] = await api.getNFTMetadata( + const [{ status, result }] = await api.getNFTCollectionMetadata( [ { contract: collection, - tokenId: tokenIds[0], }, ], account.currency?.ethereumLikeInfo?.chainId?.toString() || "1"