Overview
Error.encodeParams returns the full revert payload for a custom error: selector + encoded parameters. This is the same format emitted by the EVM on revert with a custom error.
Quick Start
Use in Tests
Error Handling
Invalid values throwAbiEncodingError.
See Also
- decodeParams - Decode error data
- getSelector - Compute error selector
- Encoding - ABI encoding rules

