-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change in error message #1047
Comments
That is strange. It is encoding it as hex (decoded: I'll figure out why this is happening and fix it shortly. You shouldn't need any string matching. When things are working correctly, you should be able to use |
That's really awesome! |
This should be available in 5.0.14 now. :) I found the code path that was skipping the human-readability of error messages in some cases and updated the string matching for normalizing the errors and making sure the Signer and FallbackProvider properly forward blockchain errors. Let me know if you have any problems. :) |
Closing this now, but please re-open if you are still having issues. Thanks! :) |
Sorry to bother about errors again, but error messages just went from readable to unreadable.
I have two error messages of a same script, before and post ethers.js minor upgrade (i've added quick new line characters to make it viewable here instead of horizontal scroll)
Some previous version (
web/5.0.2
):Latest version (
web/5.0.6
):Before the upgrade, I could simply do
if(error.message.includes('Transaction nonce is too low')) {}
in my logic. Now the body is not parsed format.Also I wanted to know a good way to install an older version of ethers (downgrade few minor versions) incase situation is very critical and it's super urgent to get it working no matter what.
The text was updated successfully, but these errors were encountered: