edr
edr copied to clipboard
Port the Error inferred from Hardhat Network
We have multiple heuristics implemented in https://github.com/NomicFoundation/hardhat/blob/main/packages/hardhat-core/src/internal/hardhat-network/stack-traces/error-inferrer.ts
We need to split the ones that decode returndata (covered in #250) from the ones that improve stack traces (covered in #261), and the ones that detect common error scenarios (covered by this issue).
Definition of done
- We need to port all the heuristics in
error-inferred.ts