Skip to content

Commit

Permalink
[react-core] Update code sample for useTokenSupply (#2202)
Browse files Browse the repository at this point in the history
  • Loading branch information
kien-ngo authored Jan 21, 2024
1 parent 94e4dc9 commit ba978f5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/stupid-lemons-happen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@thirdweb-dev/react-core": patch
---

Update code sample for useTokenSupply
3 changes: 2 additions & 1 deletion packages/react-core/src/evm/hooks/async/token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ import invariant from "tiny-invariant";
* import { useTokenSupply } from "@thirdweb-dev/react";
*
* function App() {
* const { data, isLoading, error } = useTokenSupply(contractAddress);
* const { contract } = useContract(contractAddress);
* const { data, isLoading, error } = useTokenSupply(contract);
* }
* ```
*
Expand Down

0 comments on commit ba978f5

Please sign in to comment.