Replies: 4 comments 12 replies
-
I am able to reproduce this on 'ethers/5.6.8'. Will get back to you on this soon. |
Beta Was this translation helpful? Give feedback.
-
i have started to write a hardhat plugin to help with this issue, and the class is standalone, though i have never used it as such yet. feel free to contribute |
Beta Was this translation helpful? Give feedback.
-
I found myself going back to this problem repeatedly for some reason. I have decided to solve this custom error issue for good with a utility. Anyone interested can find the utility here as well: ethers-decode-error This utility library helps with extracting the actual revert error messages, and catching custom errors and their arguments from the smart contracts. Just pass in the error and you will get the custom error and its arguments (if any). Hopefully this helps anyone who is also having the same problem. |
Beta Was this translation helpful? Give feedback.
-
In ethers V6:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am using 5.5.2v.
my contract:
ABI in javascript:
Now, when I call
mint2
, what I get isexecution reverted
and it doesn't includeseriouserror
..err
prints the following:Seems like i can't get
seriouserror
thing... Any idea ?Beta Was this translation helpful? Give feedback.
All reactions