Catching custom errors with nested calls #3487
Unanswered
gagiuntoli
asked this question in
Q&A
Replies: 1 comment 2 replies
-
You can add ABIs together, so as long as you include the "error InvalidNumber()" fragment in the ABI, it will be able to parse it out. :) |
Beta Was this translation helpful? Give feedback.
2 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.
-
Related to this question, is it possible with
ethersjs
to catch custom errors in a situation like this:where I call
callB
on contract A?The problem with
callStatic
is that when I doawait a.callStatic.callB()
, the A's ABI has no idea about theB
and its custom errors, so it cannot identify the error code returned and translate into something readable.Beta Was this translation helpful? Give feedback.
All reactions