Skip to content

Commit 5c6f288

Browse files
committed
chore: Fix readContract docs (#4920)
## Problem solved Short description of the bug fixed or feature added <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on updating the `useReadContract` function calls in two files by adding a comma to the method definition for better syntax clarity. ### Detailed summary - In `packages/thirdweb/src/transaction/read-contract.ts`: - Added a comma after the method definition for `tokenURI`. - In `packages/thirdweb/src/react/core/hooks/contract/useReadContract.ts`: - Added a comma after the method definition for `tokenURI`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
1 parent 4660e0c commit 5c6f288

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/thirdweb/src/react/core/hooks/contract/useReadContract.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ type PickedQueryOptions = {
4545
*
4646
* const { data, isLoading } = useReadContract({
4747
* contract,
48-
* method: "function tokenURI(uint256 tokenId) returns (string)"});
48+
* method: "function tokenURI(uint256 tokenId) returns (string)"
4949
* params: [1n],
5050
* });
5151
* ```

packages/thirdweb/src/transaction/read-contract.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export type ReadContractOptions<
111111
*
112112
* const { data, isLoading } = useReadContract({
113113
* contract,
114-
* method: "function tokenURI(uint256 tokenId) returns (string)"}),
114+
* method: "function tokenURI(uint256 tokenId) returns (string)",
115115
* params: [1n],
116116
* });
117117
* ```

0 commit comments

Comments
 (0)