Error Handling in version 6 #4558
Unanswered
quiet-node
asked this question in
Q&A
Replies: 1 comment 2 replies
-
The v6 object should definitely have more information. The error looks super strange. The string “ProviderError” and “Request ID” are not coming from ethers. It looks like Hardhat is wrapping up the errors in some intermediate level? Is there a way to get the original error out of Hardhat? |
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
-
Hello, my team recently migrated from v5 to v6, and I have a question about error handling in version 6.
Below is my Solidity contract:
And here is the corresponding unit test in JavaScript:
In version 5, the
console.log(error)
would print out detailed information like:In version 6, the error object looks like:
There is less detailed information in version 6. My question is: Is it possible to make the error object in version 6 as informative as it was in version 5?
Beta Was this translation helpful? Give feedback.
All reactions