-
Notifications
You must be signed in to change notification settings - Fork 4.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
error from contract returned as string not as object #12646
Comments
@MonarthS Im having trouble reproducing this issue. From what I can tell, there is a related issue though - errors returned from smart contracts are returned as nested errors the error.message has the real json-rpc error inside of it. Any chance you could let me know if you are still running into this, and if so, how i might reproduce the output from the screenshot provided. Thank you! |
here is some notes from trying out different errors in the playground, which uses only the json rpc api:
Just for Here is some examples of errors you can get from using ganache & playground: |
followup questions:
|
This issue has been automatically marked as stale because it has not had recent activity in the last 90 days. It will be closed in 45 days if there is no further activity. The MetaMask team intends on reviewing this issue before close, and removing the stale label if it is still a bug. We welcome new comments on this issue. We do not intend on closing issues if they report bugs that are still reproducible. Thank you for your contributions. |
This issue was closed because there has been no follow up activity in the last 45 days. If you feel this was closed in error, please reopen and provide evidence on the latest release of the extension. Thank you for your contributions. |
Error thrown from contract returned as string, so can not parse specific error:
contract error
other errors
Expected behavior
Browser details (please complete the following information):
The text was updated successfully, but these errors were encountered: