There seems to be no way to extract an error message while using
useContractFunction, it seems that one can only refer to
state to check if it is equal to
"Exception", but in most cases, I'd want to handle the error thrown by the smart contract in order to show it to the user. At the moment, the error does get logged in my console but I have no idea how I can extract it or use it in order to show a specific error message to the user.
Example of what I see logged:
Is there any way I can handle this error or access the error.message within my code whilst using