feat: error signature utils #3715
Unanswered
0xpolarzero
asked this question in
Idea / Feature Request
Replies: 1 comment 1 reply
-
We can expose. Check out https://oxlib.sh/api/AbiItem while you wait. :P |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
viem exposes utils for converting ABI items, e.g. functions or events, to to a hex signature representation. 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, the api could expose some new utils:
toErrorSignature
->toSignature
;toErrorSelector
->toSignatureHash
;toErrorHash
->toSignatureHash
.Beta Was this translation helpful? Give feedback.
All reactions