Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Update usetokensupply.mdx #1126

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

devbydixon
Copy link

According to the docs, the useTokenSupply hook expects a parameter of type <TokenContract>. Using the address will not work (in a typescript/safe environment at least). I updated it to instantiate the contract instance first by using useContract then passing the contract itself in as the expected parameter for useTokenSupply.

According to the docs, the `useTokenSupply` hook expects a parameter of type  `<TokenContract>`. Using the address will not work (in a typescript/safe environment at least). I updated it to instantiate the contract instance first by using `useContract` then passing the contract itself in as the expected parameter for `useTokenSupply`.


Signed-off-by: 0xD1x0n  <[email protected]>
Copy link

vercel bot commented Dec 23, 2023

@devbydixon is attempting to deploy a commit to the thirdweb Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant