How to successfully retrieve values from a external view function? #773
Unanswered
dudusotero
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have the following method implemented in my contract:
I want to retrieve all tasks from a particular address to my frontend, using this following example:
What I'm missing here? Every time just returns an empty array. I didn't found at the docs any explanation to make this work, should I add a signer or provider config to this hook? If yes, how I do it?
Here's an working example, at the same contract, that I just created for testing this hook:
--- EDIT ---
Just hardcoded a function here using ethers, and this way it's working fine:
Is that a way to debug the signer used for the useContractRead hook?
Beta Was this translation helpful? Give feedback.
All reactions