Skip to content

How to get a contract instance type? #544

Closed Answered by rhubarbgarden
Ncookiez asked this question in Question
Discussion options

You must be logged in to vote

I realise this is quite an old question, but the way I solved for this was to do GetContractReturnType<typeof ContractAbi, PublicClient, WalletClient>. This requires that you create a type definition file for your ContractAbi.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@killroy192
Comment options

Answer selected by Ncookiez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants