-
so is it fine to use. useContract to interact with the deployed contract or is it better to use. useContractWrite/ useContractRead ? |
Beta Was this translation helpful? Give feedback.
Answered by
tmm
Mar 20, 2022
Replies: 1 comment
-
I would recommend |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Hussainzz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I would recommend
useContractWrite
anduseContractRead
. They are allow declarative access to these methods instead of needs to manage state and errors yourself. In the next version of wagmi, there will also be some caching improvements foruseReadContract
as well as broader finite state changes.