Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Commit

Permalink
Merge pull request #217 from reservoirprotocol/ofir/platf-1867-outdat…
Browse files Browse the repository at this point in the history
…edmissing-collection-metadata-on-l2s

feat: removed logos
  • Loading branch information
nofir authored Aug 11, 2023
2 parents 7676daa + 9ab0b00 commit dce20c4
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions src/extend/artblocks-engine/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit dce20c4

Please sign in to comment.