@@ -19,7 +19,7 @@ declare function useContract(contractAddress?: string): {
1919 pubishMetadata: null ;
2020 } | {
2121 contractType: " custom" ;
22- pubishMetadata: PublishedMetadata | null | undefined ;
22+ pubishMetadata: PublishedMetadata | undefined ;
2323 } | undefined ;
2424 error: unknown ;
2525 isError: true ;
@@ -44,7 +44,7 @@ declare function useContract(contractAddress?: string): {
4444 pubishMetadata: null ;
4545 } | {
4646 contractType: " custom" ;
47- pubishMetadata: PublishedMetadata | null | undefined ;
47+ pubishMetadata: PublishedMetadata | undefined ;
4848 } | undefined , unknown >>;
4949 remove: () => void ;
5050 fetchStatus: react_query .FetchStatus ;
@@ -55,7 +55,7 @@ declare function useContract(contractAddress?: string): {
5555 pubishMetadata: null ;
5656 } | {
5757 contractType: " custom" ;
58- pubishMetadata: PublishedMetadata | null | undefined ;
58+ pubishMetadata: PublishedMetadata | undefined ;
5959 } | undefined ;
6060 error: null ;
6161 isError: false ;
@@ -80,7 +80,7 @@ declare function useContract(contractAddress?: string): {
8080 pubishMetadata: null ;
8181 } | {
8282 contractType: " custom" ;
83- pubishMetadata: PublishedMetadata | null | undefined ;
83+ pubishMetadata: PublishedMetadata | undefined ;
8484 } | undefined , unknown >>;
8585 remove: () => void ;
8686 fetchStatus: react_query .FetchStatus ;
@@ -95,7 +95,7 @@ declare function useContract(contractAddress?: string): {
9595
9696<b >Returns:</b >
9797
98- { contract: \_thirdweb\_dev\_sdk.Split \| \_thirdweb\_dev\_sdk.NFTDrop \| \_thirdweb\_dev\_sdk.NFTCollection \| \_thirdweb\_dev\_sdk.EditionDrop \| \_thirdweb\_dev\_sdk.Edition \| \_thirdweb\_dev\_sdk.TokenDrop \| \_thirdweb\_dev\_sdk.Token \| \_thirdweb\_dev\_sdk.Vote \| \_thirdweb\_dev\_sdk.Marketplace \| \_thirdweb\_dev\_sdk.Pack \| SmartContract<any> \| null; data: { contractType: "split" \| "nft-drop" \| "nft-collection" \| "edition-drop" \| "edition" \| "token-drop" \| "token" \| "vote" \| "marketplace" \| "pack" \| undefined; pubishMetadata: null; } \| { contractType: "custom"; pubishMetadata: PublishedMetadata \| null \| undefined; } \| undefined; error: unknown; isError: true; isLoading: false; isLoadingError: false; isRefetchError: true; isSuccess: false; status: "error"; dataUpdatedAt: number; errorUpdatedAt: number; failureCount: number; isFetched: boolean; isFetchedAfterMount: boolean; isFetching: boolean; isPaused: boolean; isPlaceholderData: boolean; isPreviousData: boolean; isRefetching: boolean; isStale: boolean; refetch: <TPageData>(options?: (react\_query.RefetchOptions & react\_query.RefetchQueryFilters<TPageData>) \| undefined) => Promise<react\_query.QueryObserverResult<{ contractType: "split" \| "nft-drop" \| "nft-collection" \| "edition-drop" \| "edition" \| "token-drop" \| "token" \| "vote" \| "marketplace" \| "pack" \| undefined; pubishMetadata: null; } \| { contractType: "custom"; pubishMetadata: PublishedMetadata \| null \| undefined; } \| undefined, unknown>>; remove: () => void; fetchStatus: react\_query.FetchStatus; } \| { contract: \_thirdweb\_dev\_sdk.Split \| \_thirdweb\_dev\_sdk.NFTDrop \| \_thirdweb\_dev\_sdk.NFTCollection \| \_thirdweb\_dev\_sdk.EditionDrop \| \_thirdweb\_dev\_sdk.Edition \| \_thirdweb\_dev\_sdk.TokenDrop \| \_thirdweb\_dev\_sdk.Token \| \_thirdweb\_dev\_sdk.Vote \| \_thirdweb\_dev\_sdk.Marketplace \| \_thirdweb\_dev\_sdk.Pack \| SmartContract<any> \| null; data: { contractType: "split" \| "nft-drop" \| "nft-collection" \| "edition-drop" \| "edition" \| "token-drop" \| "token" \| "vote" \| "marketplace" \| "pack" \| undefined; pubishMetadata: null; } \| { contractType: "custom"; pubishMetadata: PublishedMetadata \| null \| undefined; } \| undefined; error: null; isError: false; isLoading: false; isLoadingError: false; isRefetchError: false; isSuccess: true; status: "success"; dataUpdatedAt: number; errorUpdatedAt: number; failureCount: number; isFetched: boolean; isFetchedAfterMount: boolean; isFetching: boolean; isPaused: boolean; isPlaceholderData: boolean; isPreviousData: boolean; isRefetching: boolean; isStale: boolean; refetch: <TPageData>(options?: (react\_query.RefetchOptions & react\_query.RefetchQueryFilters<TPageData>) \| undefined) => Promise<react\_query.QueryObserverResult<{ contractType: "split" \| "nft-drop" \| "nft-collection" \| "edition-drop" \| "edition" \| "token-drop" \| "token" \| "vote" \| "marketplace" \| "pack" \| undefined; pubishMetadata: null; } \| { contractType: "custom"; pubishMetadata: PublishedMetadata \| null \| undefined; } \| undefined, unknown>>; remove: () => void; fetchStatus: react\_query.FetchStatus; } \| null
98+ { contract: \_thirdweb\_dev\_sdk.Split \| \_thirdweb\_dev\_sdk.NFTDrop \| \_thirdweb\_dev\_sdk.NFTCollection \| \_thirdweb\_dev\_sdk.EditionDrop \| \_thirdweb\_dev\_sdk.Edition \| \_thirdweb\_dev\_sdk.TokenDrop \| \_thirdweb\_dev\_sdk.Token \| \_thirdweb\_dev\_sdk.Vote \| \_thirdweb\_dev\_sdk.Marketplace \| \_thirdweb\_dev\_sdk.Pack \| SmartContract<any> \| null; data: { contractType: "split" \| "nft-drop" \| "nft-collection" \| "edition-drop" \| "edition" \| "token-drop" \| "token" \| "vote" \| "marketplace" \| "pack" \| undefined; pubishMetadata: null; } \| { contractType: "custom"; pubishMetadata: PublishedMetadata \| undefined; } \| undefined; error: unknown; isError: true; isLoading: false; isLoadingError: false; isRefetchError: true; isSuccess: false; status: "error"; dataUpdatedAt: number; errorUpdatedAt: number; failureCount: number; isFetched: boolean; isFetchedAfterMount: boolean; isFetching: boolean; isPaused: boolean; isPlaceholderData: boolean; isPreviousData: boolean; isRefetching: boolean; isStale: boolean; refetch: <TPageData>(options?: (react\_query.RefetchOptions & react\_query.RefetchQueryFilters<TPageData>) \| undefined) => Promise<react\_query.QueryObserverResult<{ contractType: "split" \| "nft-drop" \| "nft-collection" \| "edition-drop" \| "edition" \| "token-drop" \| "token" \| "vote" \| "marketplace" \| "pack" \| undefined; pubishMetadata: null; } \| { contractType: "custom"; pubishMetadata: PublishedMetadata \| undefined; } \| undefined, unknown>>; remove: () => void; fetchStatus: react\_query.FetchStatus; } \| { contract: \_thirdweb\_dev\_sdk.Split \| \_thirdweb\_dev\_sdk.NFTDrop \| \_thirdweb\_dev\_sdk.NFTCollection \| \_thirdweb\_dev\_sdk.EditionDrop \| \_thirdweb\_dev\_sdk.Edition \| \_thirdweb\_dev\_sdk.TokenDrop \| \_thirdweb\_dev\_sdk.Token \| \_thirdweb\_dev\_sdk.Vote \| \_thirdweb\_dev\_sdk.Marketplace \| \_thirdweb\_dev\_sdk.Pack \| SmartContract<any> \| null; data: { contractType: "split" \| "nft-drop" \| "nft-collection" \| "edition-drop" \| "edition" \| "token-drop" \| "token" \| "vote" \| "marketplace" \| "pack" \| undefined; pubishMetadata: null; } \| { contractType: "custom"; pubishMetadata: PublishedMetadata \| undefined; } \| undefined; error: null; isError: false; isLoading: false; isLoadingError: false; isRefetchError: false; isSuccess: true; status: "success"; dataUpdatedAt: number; errorUpdatedAt: number; failureCount: number; isFetched: boolean; isFetchedAfterMount: boolean; isFetching: boolean; isPaused: boolean; isPlaceholderData: boolean; isPreviousData: boolean; isRefetching: boolean; isStale: boolean; refetch: <TPageData>(options?: (react\_query.RefetchOptions & react\_query.RefetchQueryFilters<TPageData>) \| undefined) => Promise<react\_query.QueryObserverResult<{ contractType: "split" \| "nft-drop" \| "nft-collection" \| "edition-drop" \| "edition" \| "token-drop" \| "token" \| "vote" \| "marketplace" \| "pack" \| undefined; pubishMetadata: null; } \| { contractType: "custom"; pubishMetadata: PublishedMetadata \| undefined; } \| undefined, unknown>>; remove: () => void; fetchStatus: react\_query.FetchStatus; } \| null
9999
100100a response object that includes the contract once it is resolved
101101
0 commit comments