Skip to content
Closed
Show file tree
Hide file tree
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 @@ -35,7 +35,7 @@ export function ContractPageLayout(props: {
} = props;

return (
<div>
<div className="flex flex-col grow">
<div className="border-border border-b py-8">
<div className="container flex flex-col gap-4">
<div className="flex flex-col justify-between gap-4 md:flex-row">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export function getContractPageSidebarLinks(data: {
exactMatch: true,
href: `${layoutPrefix}/cross-chain`,
label: "Cross Chain (Beta)",
hide: !data.metadata.isModularCore,
},
{
exactMatch: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,14 @@ export async function SharedCrossChainPage(props: {
const isModularCore = (await getContractPageMetadata(serverContract))
.isModularCore;

if (!isModularCore) {
redirectToContractLandingPage({
chainIdOrSlug: props.chainIdOrSlug,
contractAddress: props.contractAddress,
projectMeta: props.projectMeta,
});
}

let twCloneFactoryContract: Readonly<
ContractOptions<[], `0x${string}`>
> | null = null;
Expand Down
Loading