From 9ab0b008f8e3fc5555f43364ec1176c0e32dec4f Mon Sep 17 00:00:00 2001 From: nofir Date: Fri, 11 Aug 2023 12:38:31 -0400 Subject: [PATCH] feat: removed logos --- src/extend/artblocks-engine/index.js | 31 ---------------------------- 1 file changed, 31 deletions(-) diff --git a/src/extend/artblocks-engine/index.js b/src/extend/artblocks-engine/index.js index 9b979e6..29e8968 100644 --- a/src/extend/artblocks-engine/index.js +++ b/src/extend/artblocks-engine/index.js @@ -3,8 +3,6 @@ import slugify from "slugify"; import { logger } from "../../shared/logger"; -import { fetchTokens as fetchTokensOnChain } from "../../fetchers/onchain"; - export const extendCollection = async (_chainId, metadata, tokenId) => { if (isNaN(Number(tokenId))) { throw new Error(`Invalid tokenId ${tokenId}`); @@ -71,35 +69,6 @@ export const extend = async (_chainId, metadata) => { kind: "string", }); } - } else { - logger.info( - "artblocks-engine-extend", - `extend - features fallback. _chainId=${_chainId}, contract=${metadata.contract}, tokenId=${ - metadata.tokenId - }, metadata=${JSON.stringify(metadata)}, url=${url}, data=${JSON.stringify(data)}` - ); - - try { - const tokens = await fetchTokensOnChain(_chainId, [ - { contract: metadata.contract, tokenId: metadata.tokenId }, - ]); - - logger.info( - "artblocks-engine-extend", - `extend - fetchTokensOnChain. _chainId=${_chainId}, contract=${ - metadata.contract - }, tokenId=${metadata.tokenId}, metadata=${JSON.stringify( - metadata - )}, url=${url}, data=${JSON.stringify(data)}, tokens=${JSON.stringify(tokens)}` - ); - } catch (error) { - logger.error( - "artblocks-engine-extend", - `fetchTokensOnChain error. _chainId=${_chainId}, contract=${metadata.contract}, tokenId=${ - metadata.tokenId - }, metadata=${JSON.stringify(metadata)}, data=${JSON.stringify(data)}, error=${error}` - ); - } } return {