Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

feat: add EthError trait and derive #1549

Merged
merged 2 commits into from
Aug 2, 2022

Conversation

mattsse
Copy link
Collaborator

@mattsse mattsse commented Aug 2, 2022

Motivation

Add support for custom errors

Solution

  • introduce new EthError trait, basically same as EthCall with derive impl
    • unify some derive code for EthCall and EthError in calllike
  • support human readable error parsing
  • generate bindings for custom solidity errors, if there are more than 1 error in the abi, we generate an error enum enum <name>Errors {.. see Seaport test

PR Checklist

  • Added Tests
  • Added Documentation
  • Updated the changelog

Copy link
Owner

@gakonst gakonst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pretty reasonable

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants