useDApp
useDApp copied to clipboard
[Feature Request] Add Error hash to transaction status. Which can be used for custom error message throwing from solidity.
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
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.