Overview
Error.decodeParams decodes custom error revert data and validates the selector. Pass the full error data (selector + params).
Quick Start
Decode Without Selector
If you already sliced the selector, decode just the parameters:Error Handling
AbiDecodingErrorwhen data is too short or malformedAbiInvalidSelectorErrorwhen the selector does not match the error definition
See Also
- encodeParams - Encode error data
- getSelector - Compute error selector

