Replies: 1 comment
-
I was able to resolve my issue by adapting the answer from #3027 (comment) to
|
Beta Was this translation helpful? Give feedback.
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Using Ethers 6.6.0
I have an issue where Metamask error log contains the valid error message but ethers doesn't.
I want to display in my application the error received by the contract function when I use revert in my solidity code:
When I run this function with an account that is not the owner of the contract:
I'm getting the following error:

Somehow Metmask chrome extension gets it but ethers doesn't. Is there a way to get the error message containing "FundMe__NotOwner()" in that case ?
Beta Was this translation helpful? Give feedback.
All reactions