useContract read is successful while useContractRead throws error #1484
Unanswered
matthewhausman
asked this question in
Q&A
Replies: 1 comment 2 replies
-
|
Solved :/ |
Beta Was this translation helpful? Give feedback.
2 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.
Uh oh!
There was an error while loading. Please reload this page.
-
This is only an issue when not connected to wallet.
The following successfully reads the 'goal':
While the useContractRead hook will throw an error and look like:
(Error: call revert exception [ See: https://links.ethers.org/v5-errors-CALL_EXCEPTION ] (method="goal()", data="0x", errorArgs=null, errorName=null, errorSignature=null, reason=null, code=CALL_EXCEPTION, version=abi/5.7.0))
Beta Was this translation helpful? Give feedback.
All reactions