Repository navigation
feat: expose error signature utils #270
Closed
0xpolarzero
started this conversation in
Ideas
Replies: 1 comment
|
Wrong place, all of this is viem. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
abitype exposes utils for converting ABI items, e.g. functions or events, to signatures. This is not the case for errors (
AbiError), although the underlying logic is present and only needs a wrapper with the right type.We already have:
toEventSignature/toFunctionSignature->toSignature;toEventSelector/toFunctionSelector->toSignatureHash;toEventHash/toFunctionHash->toSignatureHash.Similarily, abitype could expose some new:
toErrorSignature->toSignature;toErrorSelector->toSignatureHash;toErrorHash->toSignatureHash.All reactions