Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TOOL-2814] Fix custom factory publish form (#5819)
TOOL-2814 ## Problem solved Short description of the bug fixed or feature added <!-- start pr-codex --> --- ## PR-Codex overview This PR refactors the `useCustomFactoryAbi` function in `hooks.ts` to improve contract handling and query logic. It changes how the contract is retrieved and updates the query's enabled condition. ### Detailed summary - Changed import statements for `ThirdwebContract` and `getContract`. - Refactored the `contract` retrieval logic to be more concise. - Updated `queryKey` to include `contractAddress` and `chainId`. - Modified the `enabled` condition to check for `contractAddress` and `chainId`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
- Loading branch information