ApeWorX / ethpm-types

Implementation of EIP-2678
Apache License 2.0
14 stars 8 forks source link

feat: add `errors` calculated property on `ContractType` [APE-810] #71

Closed antazoey closed 1 year ago

antazoey commented 1 year ago

What I did

This allows easier integrations with custom exceptions in downstream services, such as Ape. Now, we can check for selectors to find the correct ABI.

How I did it

How to verify it

contract_type.errors should contains your custom solidity errors. "0x123" in contract_type.errors to check for a selector

Checklist