Having trouble with useContact / useContractWrite #49
Unanswered
EzraWeller
asked this question in
Q&A
Replies: 2 comments 1 reply
-
|
i think this is one area where the wagmi api falls down vs |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
The hook provides the write method to call as the second arg. The first arg has data after the user has signed. The loading shows after the write method is called and before signing tx. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey all,
So much <3 for making this library. Been trying to integrate it with a project today and I'm coming up short trying to instantiate a contract connected to a signer.
Attempting to copy the docs / example, I've been trying:
But I only seem to get
signer: nullin the result. I see I can get the signer asynchronously from the result ofuseAccountand then plug that in touseContract, but that doesn't seem like the intended way to do this.Just tried
useContractWritein the same way and got the same result.What am I missing?
Beta Was this translation helpful? Give feedback.
All reactions