Skip to content
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

[Feature Request] Add Error hash to transaction status. Which can be used for custom error message throwing from solidity. #854

Open
suresh174 opened this issue Jun 28, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@suresh174
Copy link
Contributor

suresh174 commented Jun 28, 2022

Is your feature request related to a problem? Please describe.
Add Error hash to transaction status. Which can be used for custom error message throwing from solidity.

Describe the solution you'd like
const errorHash = parseInt(e.error?.data?.data ?? e.error?.data ?? e.data?.data ?? e.data)

I have raised a PR for this: #855

@suresh174 suresh174 added the enhancement New feature or request label Jun 28, 2022
@ItsShadowl
Copy link
Contributor

Why not just add the originalError as sent by ethers.js?
That would help others a lot, myself included.

The originalError will help this draft(#907) too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants