useDApp icon indicating copy to clipboard operation
useDApp copied to clipboard

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

Open suresh174 opened this issue 3 years ago • 1 comments

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: https://github.com/TrueFiEng/useDApp/pull/855

suresh174 avatar Jun 28 '22 21:06 suresh174

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.

ItsShadowl avatar Aug 10 '22 19:08 ItsShadowl