Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,19 @@ export default async function Layout(props: {
return <ConfigureCustomChain chainSlug={props.params.chain_id} />;
}

const { contract, chainMetadata } = info;

if (chainMetadata.status === "deprecated") {
notFound();
}
Comment on lines +33 to +35
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need to show the user some more info for this down the line, fine for now


// check if the contract exists
const isValidContract = await isContractDeployed(info.contract);
const isValidContract = await isContractDeployed(contract);
if (!isValidContract) {
// TODO - replace 404 with a better page to upsale deploy or other thirdweb products
notFound();
}

const { contract, chainMetadata } = info;
const contractPageMetadata = await getContractPageMetadata(contract);
const sidebarLinks = getContractPageSidebarLinks({
chainSlug: chainMetadata.slug,
Expand Down
Loading