Replies: 1 comment 1 reply
-
I found this decodeerrorresult. But how do I reach data field? |
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.
-
I found an article on how to handle custom errors at simulateContract docs.
But in my case I see such an error:
This error is of type ContractFunctionExecutionError, not ContractFunctionRevertedError. In that case, is there any possibility to extract the custom error name? The contract has a bunch of custom errors and one is for sure triggered during that call.
Here is how I do it
Beta Was this translation helpful? Give feedback.
All reactions