File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress] Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { DeprecatedAlert } from "components/shared/DeprecatedAlert";
55import type { Metadata } from "next" ;
66import { notFound } from "next/navigation" ;
77import { getContractMetadata } from "thirdweb/extensions/common" ;
8- import { isContractDeployed } from "thirdweb/utils" ;
8+ import { isAddress , isContractDeployed } from "thirdweb/utils" ;
99import { resolveFunctionSelectors } from "../../../../../lib/selectors" ;
1010import { shortenIfAddress } from "../../../../../utils/usedapp-external" ;
1111import { ConfigureCustomChain } from "./ConfigureCustomChain" ;
@@ -22,6 +22,10 @@ export default async function Layout(props: {
2222 } ;
2323 children : React . ReactNode ;
2424} ) {
25+ if ( ! isAddress ( props . params . contractAddress ) ) {
26+ return notFound ( ) ;
27+ }
28+
2529 const info = await getContractPageParamsInfo ( props . params ) ;
2630
2731 if ( ! info ) {
You can’t perform that action at this time.
0 commit comments