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 {