Open k06a opened 1 year ago
I think there are two things going on here.
If you look at the nested error, it says "TransactionExecutionError: VM Exception while processing transaction: revert with unrecognized return data or custom error". This is part of a stack trace that ethers stringifies and puts in a single line, so it's not super helpful, but it's there. That error message should include the selector. The relevant line is here:
The second problem is that ethers is showing a wrong error message, because there definitely is return data in the revert. Maybe we are not adding it properly in this scenario. My guess is that the easiest way to reproduce this is to call a transaction that reverts with some random 4 bytes (so it won't match any error) and see what Hardhat+Ethers do.
Version of Hardhat
2.12.6
What happened?
I see error on test transaction, where should happen revert
0x863265dc
. I see this selector inside the error.Source: https://github.com/1inch/limit-order-protocol/actions/runs/4105167851/jobs/7081649960
Minimal reproduction steps
You can try to run test of the commit mentioned above:
Search terms
custom errors