Improve error messages #581
Unanswered
cmi23
asked this question in
Idea / Feature Request
Replies: 4 comments 5 replies
-
|
We do return the revert reasons. Can you provide a minimal reproducible example? |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
facing same issue |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
How did y'all solve this? |
Beta Was this translation helpful? Give feedback.
3 replies
-
|
Related: |
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.
-
ContractFunctionExecutionError: Execution reverted for an unknown reason.is vague. I suggest returning more details, similar to ethers's approach.Error: cannot estimate gas; transaction may fail or may require manual gas limit [ See: https://links.ethers.org/v5-errors-UNPREDICTABLE_GAS_LIMIT ] (reason="execution reverted: There are no open orders for token", method="estimateGas", transaction={"from":"0x8adDCAb8dC4Db2A74122EdD1ab3eF2197674DC4f","gasPrice":{"type":"BigNumber","hex":"0xd29b67c7"},"to":"0x74375D90b03981E2f3549C1e338BD0104fE414d2","value":{"type":"BigNumber","hex":"0x01"},"data":"0xfa4ef2fd000000000000000000000000acd7f3b07a3614df3eb2ce03d4ab446ad49418a00000000000000000000000000000000000000000000000000000000000000611","accessList":null}, error={"code":-32603,"data":{"code":3,"message":"execution reverted: There are no open orders for token","data":"0x08c379a000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000022546865726520617265206e6f206f70656e206f726465727320666f7220746f6b656e000000000000000000000000000000000000000000000000000000000000"}}, code=UNPREDICTABLE_GAS_LIMIT, version=providers/5.7.2)Beta Was this translation helpful? Give feedback.
All reactions