Skip to content

Commit c58a9bd

Browse files
committed
back to TWCloneFactory
1 parent e3d0cb6 commit c58a9bd

File tree

7 files changed

+6
-8
lines changed

7 files changed

+6
-8
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import {
2525
DeployStatusModal,
2626
useDeployStatusModal,
2727
} from "components/contract-components/contract-deploy-form/deploy-context-modal";
28-
import {} from "components/contract-components/contract-deploy-form/modular-contract-default-modules-fieldset";
2928
import { useTxNotifications } from "hooks/useTxNotifications";
3029
import Link from "next/link";
3130
import { useEffect, useMemo, useState } from "react";

apps/dashboard/src/components/contract-components/contract-deploy-form/custom-contract.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ import {
3737
} from "thirdweb/deploys";
3838
import { useActiveAccount, useActiveWalletChain } from "thirdweb/react";
3939
import { upload } from "thirdweb/storage";
40-
import {} from "thirdweb/utils";
4140
import { isZkSyncChain } from "thirdweb/utils";
4241
import { FormHelperText, FormLabel, Text } from "tw-components";
4342
import { useCustomFactoryAbi, useFunctionParamsFromABI } from "../hooks";

packages/thirdweb/src/contract/deployment/utils/bootstrap.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ describe.runIf(process.env.TW_SECRET_KEY)("bootstrap", () => {
4040
const cloneFactory = await getDeployedInfraContract({
4141
chain: ANVIL_CHAIN,
4242
client: TEST_CLIENT,
43-
contractId: "TWCloneFactoryV2",
43+
contractId: "TWCloneFactory",
4444
constructorParams: {
4545
_trustedForwarder: forwarder.address,
4646
},

packages/thirdweb/src/contract/deployment/utils/bootstrap.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export async function deployCloneFactory(options: ClientAndChainAndAccount) {
165165
// clone factory
166166
return getOrDeployInfraContract({
167167
...options,
168-
contractId: "TWCloneFactoryV2",
168+
contractId: "TWCloneFactory",
169169
constructorParams: { _trustedForwarder: forwarder.address },
170170
});
171171
}

packages/thirdweb/src/contract/deployment/utils/clone-factory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export async function getDeployedCloneFactoryContract(args: ClientAndChain) {
2121
// check if clone factory is deployed
2222
const cloneFactory = await getDeployedInfraContract({
2323
...args,
24-
contractId: "TWCloneFactoryV2",
24+
contractId: "TWCloneFactory",
2525
constructorParams: { _trustedForwarder: forwarder.address },
2626
});
2727
if (!cloneFactory) {

packages/thirdweb/src/contract/deployment/utils/infra.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export type InfraContractId =
1515
| "WETH9"
1616
| "Forwarder"
1717
| "ForwarderEOAOnly"
18-
| "TWCloneFactoryV2"
18+
| "TWCloneFactory"
1919
| (string & {});
2020

2121
type GetDeployedInfraParams = Prettify<

packages/thirdweb/src/extensions/prebuilts/get-required-transactions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export async function getRequiredTransactions(
7676
: getDeployedInfraContract({
7777
chain,
7878
client,
79-
contractId: "TWCloneFactoryV2",
79+
contractId: "TWCloneFactory",
8080
constructorParams: {
8181
_trustedForwarder: await computePublishedContractAddress({
8282
chain,
@@ -87,7 +87,7 @@ export async function getRequiredTransactions(
8787
}).then((c) =>
8888
c
8989
? null
90-
: ({ type: "infra", contractId: "TWCloneFactoryV2" } as const),
90+
: ({ type: "infra", contractId: "TWCloneFactory" } as const),
9191
),
9292
// TODO (deploy): add WETH contract check for implementations that need it (check implementation constructor params)
9393
getTransactionsForImplementation({

0 commit comments

Comments
 (0)