Skip to content

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

Open

Description

@suresh174

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

Activity

  1. ItsShadowl commented on Aug 10, 2022

    @ItsShadowl
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions