Skip to content

Commit dfd2a59

Browse files
committed
fix old factory check
1 parent 198df09 commit dfd2a59

File tree

1 file changed

+5
-7
lines changed
  • apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/cross-chain

1 file changed

+5
-7
lines changed

apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/cross-chain/page.tsx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
parseEventLogs,
88
prepareEvent,
99
} from "thirdweb";
10-
import { defineChain, getChainMetadata, localhost } from "thirdweb/chains";
10+
import { defineChain, getChainMetadata } from "thirdweb/chains";
1111
import {
1212
type FetchDeployMetadataResult,
1313
getContract,
@@ -103,12 +103,6 @@ export default async function Page(props: {
103103
console.debug(e);
104104
}
105105

106-
if (!isDirectDeploy && !isProxyDeploy) {
107-
if (contract.chain.id === localhost.id) {
108-
return <div>Not supported</div>;
109-
}
110-
}
111-
112106
let initializeData: `0x${string}` | undefined;
113107
let inputSalt: `0x${string}` | undefined;
114108
let creationBlockNumber: bigint | undefined;
@@ -243,6 +237,10 @@ export default async function Page(props: {
243237
: undefined;
244238
}
245239

240+
if (!isDirectDeploy && !isProxyDeploy && !initializeData) {
241+
return <div>Multi chain deployments not available</div>;
242+
}
243+
246244
return (
247245
<DataTable
248246
coreMetadata={coreMetadata}

0 commit comments

Comments
 (0)