File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress] Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -28,14 +28,19 @@ export default async function Layout(props: {
2828 return < ConfigureCustomChain chainSlug = { props . params . chain_id } /> ;
2929 }
3030
31+ const { contract, chainMetadata } = info ;
32+
33+ if ( chainMetadata . status === "deprecated" ) {
34+ notFound ( ) ;
35+ }
36+
3137 // check if the contract exists
32- const isValidContract = await isContractDeployed ( info . contract ) ;
38+ const isValidContract = await isContractDeployed ( contract ) ;
3339 if ( ! isValidContract ) {
3440 // TODO - replace 404 with a better page to upsale deploy or other thirdweb products
3541 notFound ( ) ;
3642 }
3743
38- const { contract, chainMetadata } = info ;
3944 const contractPageMetadata = await getContractPageMetadata ( contract ) ;
4045 const sidebarLinks = getContractPageSidebarLinks ( {
4146 chainSlug : chainMetadata . slug ,
You can’t perform that action at this time.
0 commit comments