Skip to content
This repository has been archived by the owner on Jul 15, 2022. It is now read-only.

Commit

Permalink
Change eth NFT prepareTransaction to use collection call instead of n…
Browse files Browse the repository at this point in the history
…ft metadata call
  • Loading branch information
lambertkevin committed Apr 7, 2022
1 parent dd34d7a commit 685bbbd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/families/ethereum/modules/erc721.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 685bbbd

Please sign in to comment.