Skip to content

Commit 99e748d

Browse files
committed
docs: Add comprehensive JSDoc for getDeployedCloneFactoryContract function
1 parent 7456422 commit 99e748d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ import { getDeployedInfraContract } from "./infra.js";
33

44
/**
55
* @internal
6+
* Retrieves the deployed clone factory contract instance if available
7+
* @param args - Client and chain information required to locate the contract
8+
* @returns Promise that resolves to the clone factory contract instance if deployed, null otherwise
9+
* @remarks
10+
* This function performs two checks:
11+
* 1. Verifies if the Forwarder contract is deployed
12+
* 2. If Forwarder exists, checks if TWCloneFactory is deployed with the Forwarder address
613
*/
714
export async function getDeployedCloneFactoryContract(args: ClientAndChain) {
815
// check if Forwarder is deployed

0 commit comments

Comments
 (0)